pub fn is_bare(git_dir_candidate: &Path) -> bool
Returns true if the given git_dir seems to be a bare repository.
git_dir
Please note that repositories without an index generally look bare, even though they might also be uninitialized.