pub fn resolve_git_dir(workdir: &Path) -> Result<PathBuf>
Resolve the per-worktree git directory from a workdir path. Handles both normal repos (.git is a directory) and worktrees (.git is a file containing gitdir: <path>).
gitdir: <path>