File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,16 @@ Unspecified::
56
56
57
57
When more than one pattern matches the path, a later line
58
58
overrides an earlier line. This overriding is done per
59
- attribute. The rules how the pattern matches paths are the
60
- same as in `.gitignore` files; see linkgit:gitignore[5].
61
- Unlike `.gitignore`, negative patterns are forbidden.
59
+ attribute.
60
+
61
+ The rules by which the pattern matches paths are the same as in
62
+ `.gitignore` files (see linkgit:gitignore[5]), with a few exceptions:
63
+
64
+ - negative patterns are forbidden
65
+
66
+ - patterns that match a directory do not recursively match paths
67
+ inside that directory (so using the trailing-slash `path/` syntax is
68
+ pointless in an attributes file; use `path/**` instead)
62
69
63
70
When deciding what attributes are assigned to a path, Git
64
71
consults `$GIT_DIR/info/attributes` file (which has the highest
You can’t perform that action at this time.
0 commit comments