(root: &Path, args: &[OsString], index: Option<&Path>)
| 615 | } |
| 616 | |
| 617 | fn 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 | |
| 626 | fn execute_raw( |
| 627 | mut command: Command, |
no outgoing calls
no test coverage detected