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

Function output_text

atomic-repository/src/wip.rs:587–591  ·  view source on GitHub ↗
(operation: &'static str, bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

585}
586
587fn output_text(operation: &'static str, bytes: Vec<u8>) -> Result<String, WipCaptureError> {
588 String::from_utf8(bytes)
589 .map(|value| value.trim().to_string())
590 .map_err(|source| WipCaptureError::InvalidOutput { operation, source })
591}
592
593fn git_bytes(
594 root: &Path,

Callers 4

resolve_headFunction · 0.70
create_recovery_commitFunction · 0.70
resolve_refFunction · 0.70
git_textFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected