mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-10 08:22:54 -05:00
Merge branch 'sp/doc-gitignore-oowt'
Doc update. * sp/doc-gitignore-oowt: doc: gitignore: clarify pattern base for info/exclude and core.excludesFile
This commit is contained in:
@@ -96,6 +96,11 @@ PATTERN FORMAT
|
||||
particular `.gitignore` file itself. Otherwise the pattern may also
|
||||
match at any level below the `.gitignore` level.
|
||||
|
||||
- Patterns read from exclude sources that are outside the working tree,
|
||||
such as $GIT_DIR/info/exclude and core.excludesFile, are treated as if
|
||||
they are specified at the root of the working tree, i.e. a leading "/"
|
||||
in such patterns anchors the match at the root of the repository.
|
||||
|
||||
- If there is a separator at the end of the pattern then the pattern
|
||||
will only match directories, otherwise the pattern can match both
|
||||
files and directories.
|
||||
|
||||
Reference in New Issue
Block a user