diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-11-04 14:11:20 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-04 14:12:24 -0800 |
| commit | 97660b2cfedeee452db8e852d6d476e333ac971d (patch) | |
| tree | f3ce2b7a798d73f814278379fda1a7987a4f0971 /commit.c | |
| parent | Merge branch 'maint-2.47' into maint-2.48 (diff) | |
| download | git-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 'commit.c')
0 files changed, 0 insertions, 0 deletions
