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

gix-discover

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

32 releases (breaking)

0.37.0 Nov 24, 2024
0.35.0 Aug 22, 2024
0.33.0 Jul 23, 2024
0.31.0 Mar 14, 2024
0.16.2 Mar 30, 2023

#1081 in Development tools

Download history 91915/week @ 2024-08-24 97641/week @ 2024-08-31 106464/week @ 2024-09-07 95934/week @ 2024-09-14 97132/week @ 2024-09-21 99233/week @ 2024-09-28 99026/week @ 2024-10-05 108241/week @ 2024-10-12 106004/week @ 2024-10-19 102189/week @ 2024-10-26 105308/week @ 2024-11-02 112291/week @ 2024-11-09 113608/week @ 2024-11-16 124388/week @ 2024-11-23 139555/week @ 2024-11-30 117566/week @ 2024-12-07

512,096 downloads per month
Used in 212 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
~284K SLoC