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

Re: [PATCH] Documentation/diff-options.txt: unify options

From
jidanni@jidanni.org <jidanni@jidanni.org>
Date
Dec 29, 2008, 07:03 UTC
Message-ID
<8763l331l6.fsf@jidanni.org>
In-Reply-To
<7vvdt4aj0e.fsf@gitster.siamese.dyndns.org>

(You were right about my previous patch being bad. At least git-am gives an error message when fed http://article.gmane.org/gmane.comp.version-control.git/104017/raw git-apply however does nothing and returns 0! Must be a bug.) OK, here's a better patch:

Signed-off-by: jidanni <jidanni@jidanni.org>
---
 Documentation/diff-options.txt |   18 ++++--------------
 1 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index c62b45c..b432d25 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -19,16 +19,12 @@ endif::git-format-patch[]
 
 ifndef::git-format-patch[]
 -p::
+-u::
 	Generate patch (see section on generating patches).
 	{git-diff? This is the default.}
 endif::git-format-patch[]
 
--u::
-	Synonym for "-p".
-
 -U<n>::
-	Shorthand for "--unified=<n>".
-
 --unified=<n>::
 	Generate diffs with <n> lines of context instead of
 	the usual three. Implies "-p".
@@ -190,31 +186,25 @@ endif::git-format-patch[]
 	can name which subdirectory to make the output relative
 	to by giving a <path> as an argument.
 
+-a::
 --text::
 	Treat all files as text.
 
--a::
-	Shorthand for "--text".
-
 --ignore-space-at-eol::
 	Ignore changes in whitespace at EOL.
 
+-b::
 --ignore-space-change::
 	Ignore changes in amount of whitespace.  This ignores whitespace
 	at line end, and considers all other sequences of one or
 	more whitespace characters to be equivalent.
 
--b::
-	Shorthand for "--ignore-space-change".
-
+-w::
 --ignore-all-space::
 	Ignore whitespace when comparing lines.  This ignores
 	differences even if one line has whitespace where the other
 	line has none.
 
--w::
-	Shorthand for "--ignore-all-space".
-
 --exit-code::
 	Make the program exit with codes similar to diff(1).
 	That is, it exits with 1 if there were differences and
-- 
1.5.6.5
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 8 in “Documentation/diff-options.txt: unify options”
  1. Documentation/diff-options.txt: unify optionsjidanni@jidanni.org, Dec 27, 2008
  2. Junio C HamanoDec 27, 2008
  3. jidanni@jidanni.orgDec 27, 2008
  4. Junio C HamanoDec 28, 2008
  5. jidanni@jidanni.orgDec 29, 2008
  6. Junio C HamanoDec 29, 2008
  7. Junio C HamanoDec 29, 2008
  8. git apply didn't catch error? [was Re: [PATCH] Documentation/diff-options.txt: unify options]jidanni@jidanni.org, Dec 30, 2008

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.