#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

#1276 in Development tools

Download history 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 139485/week @ 2024-11-30 136641/week @ 2024-12-07 135223/week @ 2024-12-14 95327/week @ 2024-12-21 103751/week @ 2024-12-28 118227/week @ 2025-01-04

473,135 downloads per month
Used in 221 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–20MB
~299K SLoC