#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)

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

#1234 in Development tools

Download history 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 149669/week @ 2025-01-17 140366/week @ 2025-01-24 147998/week @ 2025-01-31 165750/week @ 2025-02-07

631,258 downloads per month
Used in 237 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

~11–21MB
~313K SLoC