Function git_discover::is_bare
source · pub fn is_bare(git_dir_candidate: impl AsRef<Path>) -> boolExpand description
Returns true if the given git_dir seems to be a bare repository.
Please note that repositories without an index generally look bare, even though they might also be uninitialized.