Skip to main content

is_git_repo

Function is_git_repo 

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

Check if the given path is inside a git repository.

§Arguments

  • cwd - The working directory to check

§Returns

true if inside a git repository, false otherwise.