Skip to main content

git_common_path

Function git_common_path 

Source
pub fn git_common_path(path: &str) -> Result<String>
Expand description

Resolve path under the repo’s common git dir, which all linked worktrees share, rather than the per-worktree dir git_path returns. Use this for state that guards or mirrors the shared config (branch.*), so every worktree of a repo agrees on one file.