pub fn bare(git_dir_candidate: impl AsRef<Path>) -> bool
Expand description

Returns true if the given git_dir seems to be a bare repository.

Please note that repositories without any file in their work tree will also appear bare.