pub fn scan_index_pointers(
cwd: &Path,
reference: &str,
) -> Result<Vec<PointerEntry>, Error>Expand description
LFS pointers in the index or working tree that differ from ref
(typically HEAD). Mirrors upstream’s lfs/gitscanner_index.go:: scanIndex: runs git diff-index <ref> and git diff-index --cached <ref> to surface staged + working-tree changes, then dedupes by
(sha, path).
Returns only pointers — small blobs that parse as LFS pointer text. Symlinks and gitlinks (their dst-mode in diff-index output) are skipped. Used by prune retention so a staged-but-uncommitted pointer doesn’t get pruned out from under the user.