MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / show_at

Function show_at

crates/flowtrace-cli/src/git.rs:420–422  ·  view source on GitHub ↗

Return the bytes of `rel_path` as it existed at commit `sha`. Errors if the commit or path does not exist in that tree.

(root: &Path, sha: &str, rel_path: &str)

Source from the content-addressed store, hash-verified

418/// Return the bytes of `rel_path` as it existed at commit `sha`. Errors if
419/// the commit or path does not exist in that tree.
420pub fn show_at(root: &Path, sha: &str, rel_path: &str) -> Result<Vec<u8>> {
421 show_at_with_blob_sha(root, sha, rel_path).map(|(_, bytes)| bytes)
422}
423
424/// Same as [`show_at`] but also returns the blob's OID as a 40-char hex sha.
425/// Callers can use this as an ETag: blob content is content-addressed in git,

Callers 1

getFunction · 0.85

Calls 1

show_at_with_blob_shaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…