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

Function git_bytes

atomic-repository/src/wip.rs:593–605  ·  view source on GitHub ↗
(
    root: &Path,
    operation: &'static str,
    args: &[OsString],
    index: Option<&Path>,
    input: Option<&[u8]>,
)

Source from the content-addressed store, hash-verified

591}
592
593fn 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
607fn run_git_raw(
608 root: &Path,

Callers 5

collect_tracked_pathsFunction · 0.85
update_alternate_indexFunction · 0.85
changed_pathsFunction · 0.85
git_textFunction · 0.85

Calls 3

run_git_rawFunction · 0.85
command_failureFunction · 0.85
successMethod · 0.80

Tested by

no test coverage detected