pub fn scan_index_lfs(cwd: &Path) -> Result<Vec<PointerEntry>, Error>Expand description
Scan the index for LFS pointers via
git ls-files --stage -z -- :(attr:filter=lfs).
Honors sparse-checkout (only entries in the sparse cone are listed)
and works in bare repos against whatever’s been written into the
index. Empty result when the index is empty or no path matches the
filter=lfs attribute. Symlinks (mode 120000) are skipped — they
can never be LFS pointers.
This is the discovery path upstream’s pull / fetch use on Git 2.42+;
it sidesteps the rev-list traversal that’s expensive on partial
clones with --filter=tree:0 and over-broad in bare repos with no
committed .gitattributes reachable via the index.