aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-04-06 15:42:50 -0700
committerJunio C Hamano <gitster@pobox.com>2026-04-06 15:42:50 -0700
commite44fbc2afa6970f08bdce307f0d52b880d4decaa (patch)
tree48f9a8790befc5f54e54644d12716fcdf30ca2c2 /Documentation
parent039888f2fc0279a7860587ef0524fc112f8fcd9a (diff)
parent0f0ce0762503cb8f58a3ce07052a639e36e07ed5 (diff)
downloadgit-e44fbc2afa6970f08bdce307f0d52b880d4decaa.tar.xz
Merge branch 'sp/doc-gitignore-oowt'
Doc update. * sp/doc-gitignore-oowt: doc: gitignore: clarify pattern base for info/exclude and core.excludesFile
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/gitignore.adoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/gitignore.adoc b/Documentation/gitignore.adoc
index 9fccab4ae8..a3d24e5c34 100644
--- a/Documentation/gitignore.adoc
+++ b/Documentation/gitignore.adoc
@@ -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.