#index-file #git #version-control #gitoxide #state #unit-testing #git-index

gix-index

A work-in-progress crate of the gitoxide project dedicated implementing the git index file

32 releases (21 breaking)

new 0.33.0 May 22, 2024
0.31.1 Mar 18, 2024
0.28.1 Dec 30, 2023
0.26.0 Oct 12, 2023
0.15.1 Mar 30, 2023

#38 in Testing

Download history 79014/week @ 2024-02-02 77773/week @ 2024-02-09 80413/week @ 2024-02-16 81955/week @ 2024-02-23 88330/week @ 2024-03-01 82946/week @ 2024-03-08 96864/week @ 2024-03-15 95746/week @ 2024-03-22 88221/week @ 2024-03-29 84362/week @ 2024-04-05 85864/week @ 2024-04-12 86633/week @ 2024-04-19 88473/week @ 2024-04-26 92479/week @ 2024-05-03 99611/week @ 2024-05-10 76747/week @ 2024-05-17

371,182 downloads per month
Used in 69 crates (5 directly)

MIT/Apache

580KB
12K 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

~8–19MB
~278K SLoC