Skip to content

Commit 8a62a30

Browse files
Junio C HamanoLinus Torvalds
authored andcommitted
[PATCH] diff-stages: support "-u" as a synonym for "-p".
Just to be consistent, support "-u" as a synonym for "-p" like everybody else does. Signed-off-by: Junio C Hamano <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent d6d8dac commit 8a62a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff-stages.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int main(int ac, const char **av)
6767
const char *arg = av[1];
6868
if (!strcmp(arg, "-r"))
6969
; /* as usual */
70-
else if (!strcmp(arg, "-p"))
70+
else if (!strcmp(arg, "-p") || !strcmp(arg, "-u"))
7171
diff_output_format = DIFF_FORMAT_PATCH;
7272
else if (!strncmp(arg, "-B", 2)) {
7373
if ((diff_break_opt = diff_scoreopt_parse(arg)) == -1)

0 commit comments

Comments
 (0)