Skip to main content

common_directory

Function common_directory 

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

What: The common Git directory of an identity, when the invocation is in a repository. Why: Private repository storage such as the scratch directory lives there for every repository shape.

In TS you’d write (pseudocode):

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