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

Function git_text

atomic-repository/src/wip.rs:577–585  ·  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

575}
576
577fn 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
587fn output_text(operation: &'static str, bytes: Vec<u8>) -> Result<String, WipCaptureError> {
588 String::from_utf8(bytes)

Callers 4

prepare_tracked_wipFunction · 0.70
reuse_prepared_captureFunction · 0.70
require_worktreeFunction · 0.70
create_recovery_refFunction · 0.70

Calls 2

git_bytesFunction · 0.85
output_textFunction · 0.70

Tested by

no test coverage detected