pub fn gitlink_git_dir(sub_root: &Path) -> Option<PathBuf>Expand description
Resolve the git directory of an embedded repository whose working tree is
at sub_root. A .git directory is returned as-is; a .git file is
followed through its gitdir: <path> pointer (a relative pointer resolves
against sub_root). Returns None when there is no .git entry or the
pointer does not name an existing directory.