]> git.ipfire.org Git - thirdparty/git.git/commit - dir.c
treewide: rename 'struct exclude_list' to 'struct pattern_list'
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 3 Sep 2019 18:04:56 +0000 (11:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Sep 2019 21:05:11 +0000 (14:05 -0700)
commitcaa3d5544474a6ef8e8d7db5c073c1564b76d8bb
tree76203b7747cbc9665cf97700947ed52ddd075e4d
parentab8db61390afd803ddd9778f84ba4c28dfa975c6
treewide: rename 'struct exclude_list' to 'struct pattern_list'

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: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/check-ignore.c
builtin/clean.c
builtin/ls-files.c
dir.c
dir.h
list-objects-filter.c
unpack-trees.c
unpack-trees.h