Skip to main content

git_command

Function git_command 

Source
pub fn git_command(git: &PushGit, arguments: &[OsString]) -> Command
Expand description

What: Build a real Git command with the given arguments, directory and environment. Why: Every coordination query and push starts Git this way, so none re-enters the wrapper.

In TS you’d write (pseudocode):

nanoSpawn(gitPath, args, { cwd })