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

[PATCH] diff: document diff-filter exclusion

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 14, 2016, 19:20 UTC
Message-ID
<xmqq7fcoqb5a.fsf@gitster.mtv.corp.google.com>

In v1.8.5 days, 7f2ea5f0 (diff: allow lowercase letter to specify what change class to exclude, 2013-07-17) taught the "--diff-filter" mechanism to take lowercase letters as exclusion, but we forgot to document it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 Documentation/diff-options.txt | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 3ad6404..073c7e5 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -399,6 +399,9 @@ ifndef::git-format-patch[]
 	paths are selected if there is any file that matches
 	other criteria in the comparison; if there is no file
 	that matches other criteria, nothing is selected.
++
+Also, these upper-case letters can be downcased to exclude.  E.g.
+`--diff-filter=ad` excludes added and deleted paths.
 
 -S<string>::
 	Look for differences that change the number of occurrences of
-- 
2.9.1-545-g8c0a069
Next: Stefan Beller
Message 1 of 2 in “diff: document diff-filter exclusion”
  1. diff: document diff-filter exclusionJunio C Hamano, Jul 14, 2016
  2. Stefan BellerJul 14, 2016

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.