Skip to content
  • Derrick Stolee's avatar
    treewide: rename 'struct exclude_list' to 'struct pattern_list' · caa3d554
    Derrick Stolee authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The first consumer of pattern-matching filenames was the
    .gitignore feature. In that context, storing a list of patterns
    as a 'struct exclude_list'  makes sense. However, the
    sparse-checkout feature then adopted these structures and methods,
    but with the opposite meaning: these patterns match the files
    that should be included!
    
    It would be clearer to rename this entire library as a "pattern
    matching" library, and the callers apply exclusion/inclusion
    logic accordingly based on their needs.
    
    This commit renames 'struct exclude_list' to 'struct pattern_list'
    and renames several variables called 'el' to 'pl'.
    
    Signed-off-by: default avatarDerrick Stolee <dstolee@microsoft.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    caa3d554