Skip to main content

insert_parallel_checkout

Function insert_parallel_checkout 

Source
pub fn insert_parallel_checkout(arguments: &mut Vec<OsString>)
Expand description

What: Put -c checkout.workers=0 in front of the subcommand of the arguments. Why: Git takes -c only as a global option, before the subcommand, after the options the person and the wrapper put there.

In TS you’d write (pseudocode):

args.splice(subcommandIndex, 0, '-c', 'checkout.workers=0');