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)
| 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. |
| 420 | pub 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, |
no test coverage detected
searching dependent graphs…