Function git_repository::path::is_git::is_git [−][src]
pub fn is_git(git_dir: impl AsRef<Path>) -> Result<Kind, Error>
Expand description
What constitutes a valid git repository, and what’s yet to be implemented.
- a valid head
-
git common directory
- respect GIT_COMMON_DIR
-
an objects directory
- respect GIT_OBJECT_DIRECTORY
- a refs directory