#git-repository #directory #version-control #check #discover #find #presence

gix-discover

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

26 releases (breaking)

0.31.0 Mar 14, 2024
0.29.0 Jan 20, 2024
0.28.1 Dec 30, 2023
0.26.0 Oct 12, 2023
0.16.2 Mar 30, 2023

#1046 in Development tools

Download history 74791/week @ 2024-01-20 72856/week @ 2024-01-27 81382/week @ 2024-02-03 78543/week @ 2024-02-10 81918/week @ 2024-02-17 83962/week @ 2024-02-24 87597/week @ 2024-03-02 86673/week @ 2024-03-09 99277/week @ 2024-03-16 92652/week @ 2024-03-23 90466/week @ 2024-03-30 84722/week @ 2024-04-06 87836/week @ 2024-04-13 87416/week @ 2024-04-20 88590/week @ 2024-04-27 92912/week @ 2024-05-04

369,983 downloads per month
Used in 156 crates (8 directly)

MIT/Apache

385KB
7.5K 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

~7–18MB
~261K SLoC