Skip to contentSkip to conversation

diff: document diff-filter exclusion

PATCH In review Junio C Hamano 2 participants 2 messages Jul 14, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 diff: document diff-filter exclusion

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.

---
 Documentation/diff-options.txt | 3 +++
 1 file changed, 3 insertions(+)
Documentation/diff-options.txt +3 -0
index 3ad6404..073c7e5 100644
@@ -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
Signature · 1 line
2.9.1-545-g8c0a069
#1 lore raw
Quoted 15 lines · Junio C Hamano

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.

---
 Documentation/diff-options.txt | 3 +++
 1 file changed, 3 insertions(+)
Documentation/diff-options.txt +0 -0
index 3ad6404..073c7e5 100644

Documentation/diff-options.txt ifndef::git-format-patch[] · line 405

Quoted 7 lines
Documentation/diff-options.txt +3 -0
@@ -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.
 

This looks good for the neighboring thread. :)
http://thread.gmane.org/gmane.comp.version-control.git/299512