Commit 9410f2b52e3b56ec3c0571417b88d2a700c76558

Anders Borum 2021-06-13T08:20:59

Update src/ignore.c Co-authored-by: lhchavez <lhchavez@lhchavez.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/ignore.c b/src/ignore.c
index 32e5c53..cb4f13f 100644
--- a/src/ignore.c
+++ b/src/ignore.c
@@ -146,7 +146,7 @@ static int does_negate_rule(int *out, git_vector *rules, git_attr_fnmatch *match
 			 requiring * to also match /
 		*/
 		effective_flags = wildmatch_flags;
-		if ((rule->flags & GIT_ATTR_FNMATCH_FULLPATH) == 0) {
+		if (!(rule->flags & GIT_ATTR_FNMATCH_FULLPATH)) {
 			effective_flags &= ~WM_PATHNAME;
 		}
 
@@ -645,4 +645,3 @@ int git_ignore__check_pathspec_for_exact_ignores(
 
 	return error;
 }
-