path: root/Documentation/git-add.txt
diff options
authorManav Rathi <>2017-09-25 08:09:00 (GMT)
committerJunio C Hamano <>2017-09-25 08:54:36 (GMT)
commit93dbefb389a011c9107a3908fd38e743055be267 (patch)
treed25857fead15bb1130e89139849c3593a1eb32e0 /Documentation/git-add.txt
parent7234152e66e52c7601789f6de822bb39590f0595 (diff)
docs: improve discoverability of exclude pathspec
The ability to exclude paths with a negative pathspec is not mentioned in the man pages for git grep and other commands where it might be useful. Add an example and a pointer to the pathspec glossary entry in the man page for git grep to help the user to discover this ability. Add similar pointers from the git-add and git-status man pages. Additionally, - Add a test for the behaviour when multiple exclusions are present. - Add a test for the ^ alias. - Improve name of existing test. - Improve grammar in glossary description of the exclude pathspec. Helped-by: Junio C Hamano <> Signed-off-by: Manav Rathi <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-add.txt')
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index 7ed63dc..1c3da6d 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -61,6 +61,9 @@ OPTIONS
the working tree. Note that older versions of Git used
to ignore removed files; use `--no-all` option if you want
to add modified or new files but ignore removed ones.
+For more details about the <pathspec> syntax, see the 'pathspec' entry
+in linkgit:gitglossary[7].