Function git_repository::path::is::git[][src]

pub fn git(git_dir: impl AsRef<Path>) -> Result<Kind, Error>
Expand description

What constitutes a valid git repository, and what’s yet to be implemented, returning the guessed repository kind purely based on the presence of files. Note that the git-config ultimately decides what’s bare.

  • a valid head
  • git common directory
    • respect GIT_COMMON_DIR
  • an objects directory
    • respect GIT_OBJECT_DIRECTORY
  • a refs directory