git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] pathspec: don't error out on all-exclusionary pathspec patterns

From
CWCornelius Weig <cornelius.weig@tngtech.com>
Date
Feb 8, 2017, 13:23 UTC
Message-ID
<35bd1d35-4cb8-cf40-38ee-7442efc0f139@tngtech.com>
In-Reply-To
<alpine.LFD.2.20.1702072113380.25002@i7.lan>
Again, as Duy pointed out this should be documented.
How about something like this:
diff --git a/Documentation/glossary-content.txt b/Documentation/glossary-content.txt
index f127fe9..781cde3 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 `^`). If it
-       matches, the path is ignored.
+       matches, the path is ignored. If only exclude pathspec are given,
+       the exclusion is applied to the result set as if invoked without any
+       pathspec.
 --
 
 [[def_parent]]parent::
Previous: Linus TorvaldsNext: Junio C Hamano
Message 2 of 4 in “pathspec: don't error out on all-exclusionary pathspec patterns”
  1. 2/2 pathspec: don't error out on all-exclusionary pathspec patternsLinus Torvalds, Feb 8, 2017
  2. Cornelius WeigFeb 8, 2017
  3. Junio C HamanoFeb 8, 2017
  4. Linus TorvaldsFeb 8, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.