Skip to main content

lock_paths

Function lock_paths 

Source
pub fn lock_paths(tree: &Path) -> Vec<PathBuf>
Expand description

What: The lock file paths of a tree: the main index’s and one per administrative directory of a linked worktree, sorted. Why: Every index that a Git command could rewrite while the migration runs.

In TS you’d write (pseudocode):

function lockPaths(tree: string): string[];