Skip to main content

worktree_root

Function worktree_root 

Source
pub fn worktree_root(identity: &WorktreeIdentity) -> Option<&Path>
Expand description

What: The worktree top level of an identity, when it has one. Option<&Path> is “a borrowed path or nothing”. Why: Configuration is loaded only for main and linked worktrees.

In TS you’d write (pseudocode):

function worktreeRoot(identity: WorktreeIdentity): string | undefined;