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

[PATCH 1/3] Teach diff -a as shorthand for --text

From
SFStephan Feder <sf@b-i-t.de>
Date
Jul 7, 2006, 13:57 UTC
Message-ID
<11522806291956-git-send-email-sf@b-i-t.de>
In-Reply-To
<44AE4B35.6060607@b-i-t.de>
Signed-off-by: Stephan Feder <sf@b-i-t.de>
---
 diff.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/diff.c b/diff.c
index 1f0219d..b423491 100644
--- a/diff.c
+++ b/diff.c
@@ -1561,7 +1561,7 @@ int diff_opt_parse(struct diff_options *
 		options->output_format |= DIFF_FORMAT_PATCH;
 		options->full_index = options->binary = 1;
 	}
-	else if (!strcmp(arg, "--text")) {
+	else if (!strcmp(arg, "-a") || !strcmp(arg, "--text")) {
 		options->text = 1;
 	}
 	else if (!strcmp(arg, "--name-only"))
-- 
1.4.1.gbc483
Previous: sfNext: Stephan Feder
Message 4 of 6 in “Teach --text option to diff”
  1. Teach --text option to diffStephan Feder, Jul 7, 2006
  2. Junio C HamanoJul 7, 2006
  3. sfJul 7, 2006
  4. 1/3 Teach diff -a as shorthand for --textStephan Feder, Jul 7, 2006
  5. 2/3 Add -a and --text to common diff options helpStephan Feder, Jul 7, 2006
  6. 3/3 diff-options: Explain --text and -aStephan Feder, Jul 7, 2006

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.