#git-repository #version-control #directory #check #detection #discover

gix-discover

Discover git repositories and check if a directory is a git repository

33 releases (breaking)

new 0.38.0 Jan 18, 2025
0.37.0 Nov 24, 2024
0.36.0 Oct 22, 2024
0.33.0 Jul 23, 2024
0.16.2 Mar 30, 2023

#1474 in Development tools

Download history 99267/week @ 2024-10-04 103993/week @ 2024-10-11 109120/week @ 2024-10-18 102666/week @ 2024-10-25 102643/week @ 2024-11-01 113667/week @ 2024-11-08 111999/week @ 2024-11-15 125851/week @ 2024-11-22 133646/week @ 2024-11-29 138998/week @ 2024-12-06 135089/week @ 2024-12-13 102647/week @ 2024-12-20 97649/week @ 2024-12-27 135924/week @ 2025-01-03 149121/week @ 2025-01-10 127524/week @ 2025-01-17

523,488 downloads per month
Used in 225 crates (10 directly)

MIT/Apache

435KB
8K SLoC

Find git repositories or search them upwards from a starting point, or determine if a directory looks like a git repository.

Note that detection methods are educated guesses using the presence of files, without looking too much into the details.

Dependencies

~10–21MB
~301K SLoC