Skip to content

Commit

Permalink
diff: document diff-filter exclusion
Browse files Browse the repository at this point in the history
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 <gitster@pobox.com>
  • Loading branch information
gitster committed Jul 14, 2016
1 parent 7654286 commit 16726cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Documentation/diff-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16726cf

Please sign in to comment.