Skip to main content

scan_pointers

Function scan_pointers 

Source
pub fn scan_pointers(
    cwd: &Path,
    include: &[&str],
    exclude: &[&str],
) -> Result<Vec<PointerEntry>, Error>
Expand description

Walk history reachable from include minus exclude, return unique LFS pointers.

Order is undefined and should not be relied on. Callers that want a stable order should sort the result.

History semantics: matches upstream’s ScanRefs — every blob in every commit’s tree is examined, including blobs that have since been deleted or modified. This catches LFS objects from the full history of the named refs, which is what git lfs fetch <ref> is documented to do.