#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

31 releases (20 breaking)

0.32.1 Apr 18, 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

#1 in #index-file

Download history 63394/week @ 2024-01-05 63412/week @ 2024-01-12 73216/week @ 2024-01-19 70193/week @ 2024-01-26 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 86012/week @ 2024-04-12 73040/week @ 2024-04-19

346,028 downloads per month
Used in 68 crates (5 directly)

MIT/Apache

550KB
11K 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
~276K SLoC