Function branchless::util::run_git[][src]

pub fn run_git<S: AsRef<str> + Debug>(
    git_run_info: &GitRunInfo,
    event_tx_id: Option<EventTransactionId>,
    args: &[S]
) -> Result<isize>
Expand description

Run Git in a subprocess, and inform the user.

This is suitable for commands which affect the working copy or should run hooks. We don’t want our process to be responsible for that.

args contains the list of arguments to pass to Git, not including the Git executable itself.

Returns the exit code of Git (non-zero signifies error).