(
root: &Path,
operation: &'static str,
args: &[OsString],
index: Option<&Path>,
input: Option<&[u8]>,
)
| 591 | } |
| 592 | |
| 593 | fn git_bytes( |
| 594 | root: &Path, |
| 595 | operation: &'static str, |
| 596 | args: &[OsString], |
| 597 | index: Option<&Path>, |
| 598 | input: Option<&[u8]>, |
| 599 | ) -> Result<Vec<u8>, WipCaptureError> { |
| 600 | let output = run_git_raw(root, operation, args, index, input)?; |
| 601 | if !output.status.success() { |
| 602 | return Err(command_failure(operation, &output)); |
| 603 | } |
| 604 | Ok(output.stdout) |
| 605 | } |
| 606 | |
| 607 | fn run_git_raw( |
| 608 | root: &Path, |
no test coverage detected