summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-08 05:08:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-02-10 21:19:40 (GMT)
commit859b7f1d0e742493d2a9396794cd9040213ad846 (patch)
tree8dd558e38011f8192a12ab5e371a5656062130c7 /Documentation
parent42ebeb9d07de3c6d3a263f8ebce0508e489e5cc9 (diff)
downloadgit-859b7f1d0e742493d2a9396794cd9040213ad846.zip
git-859b7f1d0e742493d2a9396794cd9040213ad846.tar.gz
git-859b7f1d0e742493d2a9396794cd9040213ad846.tar.bz2
pathspec: don't error out on all-exclusionary pathspec patterns
Instead of erroring out and telling the user that they should add a positive pattern that covers everything else, just _do_ that. For commands where we honor the current cwd by default (ie grep, ls-files etc), we make that default positive pathspec be the current working directory. And for commands that default to the whole project (ie diff, log, etc), the default positive pathspec is the whole project. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/glossary-content.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/glossary-content.txt b/Documentation/glossary-content.txt
index 822ca83..fc9320e 100644
--- a/Documentation/glossary-content.txt
+++ b/Documentation/glossary-content.txt
@@ -387,7 +387,9 @@ Glob magic is incompatible with literal magic.
exclude;;
After a path matches any non-exclude pathspec, it will be run
through all exclude pathspec (magic signature: `!` or its
- synonym `^`). If it matches, the path is ignored.
+ synonym `^`). If it matches, the path is ignored. When there
+ is no non-exclude pathspec, the exclusion is applied to the
+ result set as if invoked without any pathspec.
--
[[def_parent]]parent::