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

Function git_object

atomic-cli/tests/it/git_wip_cb0b_test.rs:59–62  ·  view source on GitHub ↗
(root: &Path, spec: &str)

Source from the content-addressed store, hash-verified

57}
58
59fn git_object(root: &Path, spec: &str) -> Option<Vec<u8>> {
60 let output = git(root, &["show", spec]);
61 output.status.success().then_some(output.stdout)
62}
63
64fn parse_forensic_digest(output: &[u8]) -> String {
65 let text = String::from_utf8_lossy(output);

Callers

nothing calls this directly

Calls 2

successMethod · 0.80
gitFunction · 0.70

Tested by

no test coverage detected