#git #version-control #cli

gix-discover

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

21 releases (breaking)

new 0.27.0 Dec 6, 2023
0.26.0 Oct 12, 2023
0.25.0 Sep 24, 2023
0.22.1 Jul 22, 2023
0.16.2 Mar 30, 2023

#110 in Filesystem

Download history 47806/week @ 2023-08-16 52712/week @ 2023-08-23 69284/week @ 2023-08-30 80788/week @ 2023-09-06 78530/week @ 2023-09-13 83078/week @ 2023-09-20 81892/week @ 2023-09-27 80874/week @ 2023-10-04 84246/week @ 2023-10-11 81523/week @ 2023-10-18 82038/week @ 2023-10-25 79972/week @ 2023-11-01 82320/week @ 2023-11-08 70048/week @ 2023-11-15 58535/week @ 2023-11-22 57173/week @ 2023-11-29

282,436 downloads per month
Used in 108 crates (5 directly)

MIT/Apache

340KB
6.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

~5–39MB
~580K SLoC