pub fn is_git_repo(dir: &Path) -> bool
Returns true if the directory contains a .git subdirectory.
true
.git