pub fn scan_tree(
cwd: &Path,
reference: &str,
) -> Result<Vec<PointerEntry>, Error>Expand description
Walk the tree at reference, returning one entry per LFS pointer blob.
Unlike scan_pointers, this does not walk history and does not
dedupe by LFS OID — each path in the tree that points at an LFS
pointer becomes its own entry. Multiple paths pointing at the same
LFS object yield multiple entries, with their working-tree paths
preserved. This matches upstream’s ScanTree semantics, used by
ls-files and status.
Paths are read from git ls-tree -r -z so embedded newlines or
quoting metacharacters round-trip cleanly.