Skip to content

Commit 6366dd9

Browse files
committed
Merge branch 'jk/doc-diff-options'
Doc update. * jk/doc-diff-options: docs/diff-options: clarify scope of diff-filter types
2 parents 4e51984 + 46af107 commit 6366dd9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/diff-options.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,12 @@ ifndef::git-format-patch[]
469469
+
470470
Also, these upper-case letters can be downcased to exclude. E.g.
471471
`--diff-filter=ad` excludes added and deleted paths.
472+
+
473+
Note that not all diffs can feature all types. For instance, diffs
474+
from the index to the working tree can never have Added entries
475+
(because the set of paths included in the diff is limited by what is in
476+
the index). Similarly, copied and renamed entries cannot appear if
477+
detection for those types is disabled.
472478

473479
-S<string>::
474480
Look for differences that change the number of occurrences of

0 commit comments

Comments
 (0)