Skip to main content

add_arguments

Function add_arguments 

Source
pub fn add_arguments(command: &mut Command, arguments: &[OsString])
Expand description

What: Add arguments to a real-Git command, with the hooks-off options once the process has switched them on. Why: One function serves both builders of real-Git commands, so no start can miss the options.

In TS you’d write (pseudocode):

command.args(hooksOff.active ? hooksOffArguments(args) : args);