Skip to content

Commit f103744

Browse files
ydirsongitster
authored andcommitted
Keep together options controlling the behaviour of diffcore-rename.
It makes little sense to have --diff-filter in the middle of them, and even spares an ifndef::git-format-patch. Signed-off-by: Yann Dirson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f772c34 commit f103744

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

Documentation/diff-options.txt

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -247,20 +247,6 @@ endif::git-log[]
247247
Detect copies as well as renames. See also `--find-copies-harder`.
248248
If `n` is specified, it has the same meaning as for `-M<n>`.
249249

250-
ifndef::git-format-patch[]
251-
--diff-filter=[(A|C|D|M|R|T|U|X|B)...[*]]::
252-
Select only files that are Added (`A`), Copied (`C`),
253-
Deleted (`D`), Modified (`M`), Renamed (`R`), have their
254-
type (i.e. regular file, symlink, submodule, ...) changed (`T`),
255-
are Unmerged (`U`), are
256-
Unknown (`X`), or have had their pairing Broken (`B`).
257-
Any combination of the filter characters (including none) can be used.
258-
When `*` (All-or-none) is added to the combination, all
259-
paths are selected if there is any file that matches
260-
other criteria in the comparison; if there is no file
261-
that matches other criteria, nothing is selected.
262-
endif::git-format-patch[]
263-
264250
--find-copies-harder::
265251
For performance reasons, by default, `-C` option finds copies only
266252
if the original file of the copy was modified in the same
@@ -278,6 +264,18 @@ endif::git-format-patch[]
278264
number.
279265

280266
ifndef::git-format-patch[]
267+
--diff-filter=[(A|C|D|M|R|T|U|X|B)...[*]]::
268+
Select only files that are Added (`A`), Copied (`C`),
269+
Deleted (`D`), Modified (`M`), Renamed (`R`), have their
270+
type (i.e. regular file, symlink, submodule, ...) changed (`T`),
271+
are Unmerged (`U`), are
272+
Unknown (`X`), or have had their pairing Broken (`B`).
273+
Any combination of the filter characters (including none) can be used.
274+
When `*` (All-or-none) is added to the combination, all
275+
paths are selected if there is any file that matches
276+
other criteria in the comparison; if there is no file
277+
that matches other criteria, nothing is selected.
278+
281279
-S<string>::
282280
Look for differences that introduce or remove an instance of
283281
<string>. Note that this is different than the string simply

0 commit comments

Comments
 (0)