Skip to main content

is_git_repo

Function is_git_repo 

Source
pub fn is_git_repo(root: &Path) -> bool
Expand description

Whether root is inside a git work tree. Implicit (opportunistic) indexing is gated on this so a stray query never walks a non-repo directory. Native (no git fork) — it runs on every search.