Skip to main content

shadow_request

Function shadow_request 

Source
pub fn shadow_request<S: AsRef<OsStr>>(
    shadow: &Path,
    cwd: &Path,
    arguments: &[S],
) -> GitRequest
Expand description

What: A request running arguments against the shadow: --git-dir=<shadow>, hooks pointed at an absent directory, redirecting variables removed, in cwd. Why: Every cli-git shadow command looks the same; the caller adds input or variables.

In TS you’d write (pseudocode):

runShadowGit({ gitPath, shadowPath, args, cwd })