git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] Keep together options controlling the behaviour of diffcore-rename.

From
Yann Dirson <ydirson@altern.org>
Date
Nov 10, 2010, 20:27 UTC
Message-ID
<1289420833-20602-3-git-send-email-ydirson@altern.org>
In-Reply-To
<1289420833-20602-1-git-send-email-ydirson@altern.org>

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 <ydirson@altern.org>
---
 Documentation/diff-options.txt |   26 ++++++++++++--------------
 1 files changed, 12 insertions(+), 14 deletions(-)
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index ed9c44e..c93124b 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -250,20 +250,6 @@ endif::git-log[]
 	Detect copies as well as renames.  See also `--find-copies-harder`.
 	If `n` is specified, it has the same meaning as for `-M<n>`.
 
-ifndef::git-format-patch[]
---diff-filter=[(A|C|D|M|R|T|U|X|B)...[*]]::
-	Select only files that are Added (`A`), Copied (`C`),
-	Deleted (`D`), Modified (`M`), Renamed (`R`), have their
-	type (i.e. regular file, symlink, submodule, ...) changed (`T`),
-	are Unmerged (`U`), are
-	Unknown (`X`), or have had their pairing Broken (`B`).
-	Any combination of the filter characters (including none) can be used.
-	When `*` (All-or-none) is added to the combination, all
-	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.
-endif::git-format-patch[]
-
 --find-copies-harder::
 	For performance reasons, by default, `-C` option finds copies only
 	if the original file of the copy was modified in the same
@@ -281,6 +267,18 @@ endif::git-format-patch[]
 	number.
 
 ifndef::git-format-patch[]
+--diff-filter=[(A|C|D|M|R|T|U|X|B)...[*]]::
+	Select only files that are Added (`A`), Copied (`C`),
+	Deleted (`D`), Modified (`M`), Renamed (`R`), have their
+	type (i.e. regular file, symlink, submodule, ...) changed (`T`),
+	are Unmerged (`U`), are
+	Unknown (`X`), or have had their pairing Broken (`B`).
+	Any combination of the filter characters (including none) can be used.
+	When `*` (All-or-none) is added to the combination, all
+	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.
+
 -S<string>::
 	Look for differences that introduce or remove an instance of
 	<string>. Note that this is different than the string simply
-- 
1.7.2.3
Previous: Junio C HamanoNext: Junio C Hamano
Message 16 of 17 in “rationalize diffcore-rename options and their doc”
  1. rationalize diffcore-rename options and their docYann Dirson, Nov 10, 2010
  2. 1/2 [RFC] Use --find- instead of --detect- as prefix for long forms of -M and -C.Yann Dirson, Nov 10, 2010
  3. Thomas RastNov 11, 2010
  4. Yann DirsonNov 11, 2010
  5. Thomas RastNov 11, 2010
  6. Yann DirsonNov 12, 2010
  7. Kevin BallardNov 12, 2010
  8. Miles BaderNov 12, 2010
  9. Yann DirsonNov 12, 2010
  10. Junio C HamanoNov 29, 2010
  11. Kevin BallardNov 29, 2010
  12. Junio C HamanoNov 30, 2010
  13. Yann DirsonNov 30, 2010
  14. Yann DirsonNov 29, 2010
  15. Junio C HamanoNov 29, 2010
  16. 2/2 Keep together options controlling the behaviour of diffcore-rename.Yann Dirson, Nov 10, 2010
  17. Junio C HamanoNov 16, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.