#file #index #directory #git #fixtures #version-control

gix-index

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

41 releases (breaking)

0.40.1 May 10, 2025
0.39.1 Apr 25, 2025
0.38.0 Jan 18, 2025
0.37.0 Nov 24, 2024
0.15.1 Mar 30, 2023

#1756 in Filesystem

Download history 145666/week @ 2025-01-31 163519/week @ 2025-02-07 161189/week @ 2025-02-14 166453/week @ 2025-02-21 166262/week @ 2025-02-28 189867/week @ 2025-03-07 198094/week @ 2025-03-14 152229/week @ 2025-03-21 258032/week @ 2025-03-28 401900/week @ 2025-04-04 306457/week @ 2025-04-11 197392/week @ 2025-04-18 204215/week @ 2025-04-25 231480/week @ 2025-05-02 236824/week @ 2025-05-09 196467/week @ 2025-05-16

905,480 downloads per month
Used in 168 crates (7 directly)

MIT/Apache

650KB
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.

Dependencies

~13–24MB
~354K SLoC