pub fn common_dir(git_dir: &Path) -> Option<PathBuf>Expand description
Determine the common git directory for worktree-aware ref resolution.
If <git_dir>/commondir exists, its contents point to the shared
git directory. Returns None when git_dir is already the common dir.