We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 039888f + 0f0ce07 commit e44fbc2Copy full SHA for e44fbc2
1 file changed
Documentation/gitignore.adoc
@@ -96,6 +96,11 @@ PATTERN FORMAT
96
particular `.gitignore` file itself. Otherwise the pattern may also
97
match at any level below the `.gitignore` level.
98
99
+ - Patterns read from exclude sources that are outside the working tree,
100
+ such as $GIT_DIR/info/exclude and core.excludesFile, are treated as if
101
+ they are specified at the root of the working tree, i.e. a leading "/"
102
+ in such patterns anchors the match at the root of the repository.
103
+
104
- If there is a separator at the end of the pattern then the pattern
105
will only match directories, otherwise the pattern can match both
106
files and directories.
0 commit comments