Skip to main content

Module git

Module git 

Source
Expand description

Git-aware scanning using git ls-files.

Functionsยง

is_git_repo
Check if a directory is a git repository.
scan_git
Scan a directory using git ls-files (tracked + untracked, excluding ignored). Returns None if not a git repo, git command fails, or no files found.