#git #version-control #cli #decode

git-index

Please use gix-<thiscrate> instead (‘git’ -> ‘gix’)

22 releases (12 breaking)

0.12.4 Feb 17, 2023
0.12.2 Jan 10, 2023
0.11.0 Dec 30, 2022
0.9.1 Nov 27, 2022
0.0.0 Aug 28, 2020

#113 in #version-control

Download history 436/week @ 2023-08-21 444/week @ 2023-08-28 709/week @ 2023-09-04 406/week @ 2023-09-11 925/week @ 2023-09-18 308/week @ 2023-09-25 328/week @ 2023-10-02 384/week @ 2023-10-09 354/week @ 2023-10-16 340/week @ 2023-10-23 289/week @ 2023-10-30 327/week @ 2023-11-06 269/week @ 2023-11-13 363/week @ 2023-11-20 398/week @ 2023-11-27 241/week @ 2023-12-04

1,319 downloads per month
Used in 7 crates (2 directly)

MIT/Apache

390KB
8K SLoC

Test fixtures

Most of the test indices are snatched directly from the unit test suite of git itself, usually by running something like the following

 ./t1700-split-index.sh -r 2 --debug 

Then one finds all test state and the index in particular in trash directory/t1700-split-index/.git/index and can possibly copy it over and use as fixture. The preferred way is to find a test of interest, and use its setup code within one of our own fixture scripts that are executed once to generate the file of interest.


lib.rs:

Feature Flags

Dependencies

~6–16MB
~193K SLoC