Skip to main content

workdir_or_cwd

Function workdir_or_cwd 

Source
pub fn workdir_or_cwd(
    store: &BufferStoreHandle,
    scopes: &RepoScopes,
    active: BufferId,
) -> PathBuf
Expand description

active_workdir with the working directory as the fall-back — the form the operation helpers want, since they need a directory to run git in and “not in a repository” is git’s error to report, not ours.