Unverified Commit 8cad7e62 by Anders Borum Committed by GitHub

Update src/ignore.c

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
parent 9410f2b5
...@@ -142,8 +142,8 @@ static int does_negate_rule(int *out, git_vector *rules, git_attr_fnmatch *match ...@@ -142,8 +142,8 @@ static int does_negate_rule(int *out, git_vector *rules, git_attr_fnmatch *match
goto out; goto out;
/* if rule isn't for full path we match without PATHNAME flag /* if rule isn't for full path we match without PATHNAME flag
as lines like *.txt should match something like dir/test.txt * as lines like *.txt should match something like dir/test.txt
requiring * to also match / * requiring * to also match /
*/ */
effective_flags = wildmatch_flags; effective_flags = wildmatch_flags;
if (!(rule->flags & GIT_ATTR_FNMATCH_FULLPATH)) { if (!(rule->flags & GIT_ATTR_FNMATCH_FULLPATH)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment