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

[PATCH] diff-stages: support "-u" as a synonym for "-p".

From
Junio C Hamano <junkio@cox.net>
Date
Jul 13, 2005, 19:45 UTC
Message-ID
<7vll4aze0t.fsf_-_@assigned-by-dhcp.cox.net>
In-Reply-To
<loom.20050712T224801-163@post.gmane.org>

Just to be consistent, support "-u" as a synonym for "-p" like everybody else does.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 diff-stages.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
ef519b28e8edb19d4a0233152c9497ee807a4f5b
diff --git a/diff-stages.c b/diff-stages.c
--- a/diff-stages.c
+++ b/diff-stages.c
@@ -67,7 +67,7 @@ int main(int ac, const char **av)
 		const char *arg = av[1];
 		if (!strcmp(arg, "-r"))
 			; /* as usual */
-		else if (!strcmp(arg, "-p"))
+		else if (!strcmp(arg, "-p") || !strcmp(arg, "-u"))
 			diff_output_format = DIFF_FORMAT_PATCH;
 		else if (!strncmp(arg, "-B", 2)) {
 			if ((diff_break_opt = diff_scoreopt_parse(arg)) == -1)
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 9 in “Why is there no git-update-cache --modified (aka I give up)”
  1. Marc SingerJul 12, 2005
  2. Petr BaudisJul 12, 2005
  3. Junio C HamanoJul 12, 2005
  4. Marc SingerJul 12, 2005
  5. Matthias UrlichsJul 12, 2005
  6. Junio C HamanoJul 12, 2005
  7. diff-stages: support "-u" as a synonym for "-p".Junio C Hamano, Jul 13, 2005
  8. git-diff-*: --name-only and --name-only-z.Junio C Hamano, Jul 13, 2005
  9. Clean up diff option descriptions.Junio C Hamano, Jul 13, 2005

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.