MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / git_command

Function git_command

atomic-repository/src/wip.rs:617–624  ·  view source on GitHub ↗
(root: &Path, args: &[OsString], index: Option<&Path>)

Source from the content-addressed store, hash-verified

615}
616
617fn git_command(root: &Path, args: &[OsString], index: Option<&Path>) -> Command {
618 let mut command = Command::new("git");
619 command.arg("-C").arg(root).args(args);
620 if let Some(index) = index {
621 command.env("GIT_INDEX_FILE", index);
622 }
623 command
624}
625
626fn execute_raw(
627 mut command: Command,

Callers 2

create_recovery_commitFunction · 0.85
run_git_rawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected