pub fn run_native_commit(
context: &GitContext,
cwd: &Path,
request: &PreparationRequest<'_>,
) -> Result<i32, PreparationError>Expand description
What:
Runs native git commit in the shadow with the terminal attached and returns its exit code.
Why:
The editor and hook output reach the user unchanged,
so the child inherits standard streams.
In TS you’d write (pseudocode):
await runTransactionGit({ gitPath, cwd, args, indexPath, unsetEnvironment, stdio: 'inherit', allowFailure: true });