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

gix-discover

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

31 releases (breaking)

0.36.0 Oct 22, 2024
0.34.0 Aug 22, 2024
0.33.0 Jul 23, 2024
0.31.0 Mar 14, 2024
0.16.2 Mar 30, 2023

#1195 in Development tools

Download history 99114/week @ 2024-07-23 98286/week @ 2024-07-30 94776/week @ 2024-08-06 93880/week @ 2024-08-13 91625/week @ 2024-08-20 88093/week @ 2024-08-27 104758/week @ 2024-09-03 104282/week @ 2024-09-10 94778/week @ 2024-09-17 96344/week @ 2024-09-24 101438/week @ 2024-10-01 100327/week @ 2024-10-08 110434/week @ 2024-10-15 103292/week @ 2024-10-22 103165/week @ 2024-10-29 90111/week @ 2024-11-05

423,559 downloads per month
Used in 207 crates (10 directly)

MIT/Apache

430KB
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–19MB
~282K SLoC