pub fn git_dir(cwd: &Path) -> Option<PathBuf>
The resolved git directory, which a worktree does not share.