pub fn scan_previous_versions(
cwd: &Path,
reference: &str,
since: SystemTime,
) -> Result<Vec<PointerEntry>, Error>Expand description
Walk git log -G "oid sha256:" -p <ref> since since, returning
every LFS pointer that appears as the previous state of a
modified file (i.e. lives on the - side of a unified diff).
Mirrors upstream’s lfs/gitscanner_log.go::logPreviousSHAs. Used by
fetch-recent (to download pre-images of recently-modified files) and
by prune retention (to keep them on disk).
-U12 is requested so a small in-place edit still surfaces enough
surrounding context to capture the full pointer body (version, oid,
size, optional ext-N lines).