Skip to content

Commit 16726cf

Browse files
committed
diff: document diff-filter exclusion
In v1.8.5 days, 7f2ea5f (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 <[email protected]>
1 parent 7654286 commit 16726cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Documentation/diff-options.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ ifndef::git-format-patch[]
399399
paths are selected if there is any file that matches
400400
other criteria in the comparison; if there is no file
401401
that matches other criteria, nothing is selected.
402+
+
403+
Also, these upper-case letters can be downcased to exclude. E.g.
404+
`--diff-filter=ad` excludes added and deleted paths.
402405

403406
-S<string>::
404407
Look for differences that change the number of occurrences of

0 commit comments

Comments
 (0)