(
root: &Path,
operation: &'static str,
args: &[OsString],
index: Option<&Path>,
input: Option<&[u8]>,
)
| 575 | } |
| 576 | |
| 577 | fn git_text( |
| 578 | root: &Path, |
| 579 | operation: &'static str, |
| 580 | args: &[OsString], |
| 581 | index: Option<&Path>, |
| 582 | input: Option<&[u8]>, |
| 583 | ) -> Result<String, WipCaptureError> { |
| 584 | output_text(operation, git_bytes(root, operation, args, index, input)?) |
| 585 | } |
| 586 | |
| 587 | fn output_text(operation: &'static str, bytes: Vec<u8>) -> Result<String, WipCaptureError> { |
| 588 | String::from_utf8(bytes) |
no test coverage detected