aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-11-04 14:11:20 -0800
committerJunio C Hamano <gitster@pobox.com>2025-11-04 14:12:24 -0800
commit97660b2cfedeee452db8e852d6d476e333ac971d (patch)
treef3ce2b7a798d73f814278379fda1a7987a4f0971 /builtin/commit.c
parentMerge branch 'maint-2.47' into maint-2.48 (diff)
downloadgit-97660b2cfedeee452db8e852d6d476e333ac971d.tar.gz
git-97660b2cfedeee452db8e852d6d476e333ac971d.zip
dir.c: do not be fooled by :(exclude) pathspec elements
When exclude_matches_pathspec() tries to determine if an otherwise excluded item matches the pathspec given, it goes through each pathspec element and declares a hit, without checking if the element is a negative ":(exclude)" element. Fix it be applying the usual "a path matches if it matches any one of positive pathspec element, and if it matches none of negative pathspec elements" rule in the function. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions