Skip to main content

list_lfs_patterns

Function list_lfs_patterns 

Source
pub fn list_lfs_patterns(repo_root: &Path) -> Result<PatternListing>
Expand description

Walk .gitattributes across the workdir plus .git/info/attributes, extracting LFS-related pattern lines for git lfs track’s listing mode.

Pattern matching is not needed here — we’re just enumerating the raw pattern text per source file — so this uses a simple line tokenizer rather than AttrSet’s full wildmatch machinery.