summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Berry <andrew@furrypaws.ca>2021-07-06 20:57:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-07-07 00:20:02 (GMT)
commite04170697a2848189492d53c7b3aab59c32d044f (patch)
tree826d1f8b0ef65b712b63e73fcb658757ed1ecc0e
parentebf3c04b262aa27fbb97f8a0156c2347fecafafb (diff)
downloadgit-e04170697a2848189492d53c7b3aab59c32d044f.zip
git-e04170697a2848189492d53c7b3aab59c32d044f.tar.gz
git-e04170697a2848189492d53c7b3aab59c32d044f.tar.bz2
docs: .gitignore parsing is to the top of the repo
The current documentation reads as if .gitignore files will be parsed in every parent directory, and not until they reach a repository boundary. This clarifies the current behaviour. As well, this corrects 'toplevel' to 'top-level', matching usage for 'top-level domain'. Signed-off-by: Andrew Berry <andrew@furrypaws.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/gitignore.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt
index 53e7d5c..f8a1fc2 100644
--- a/Documentation/gitignore.txt
+++ b/Documentation/gitignore.txt
@@ -27,12 +27,11 @@ precedence, the last matching pattern decides the outcome):
them.
* Patterns read from a `.gitignore` file in the same directory
- as the path, or in any parent directory, with patterns in the
- higher level files (up to the toplevel of the work tree) being overridden
- by those in lower level files down to the directory containing the file.
- These patterns match relative to the location of the
- `.gitignore` file. A project normally includes such
- `.gitignore` files in its repository, containing patterns for
+ as the path, or in any parent directory (up to the top-level of the working
+ tree), with patterns in the higher level files being overridden by those in
+ lower level files down to the directory containing the file. These patterns
+ match relative to the location of the `.gitignore` file. A project normally
+ includes such `.gitignore` files in its repository, containing patterns for
files generated as part of the project build.
* Patterns read from `$GIT_DIR/info/exclude`.