diff options
author | Junio C Hamano <junkio@cox.net> | 2005-07-13 23:45:06 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-13 23:55:07 +0400 |
commit | 8a62a3097c55b22ee4543edef10322775ef62c92 (patch) | |
tree | 3e6f5ff2341c68d1251770fa9fa45ef9dab8d8a3 | |
parent | d6d8dac032e0e0c55b3edffbefd0abb00ca960fc (diff) |
[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 <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | diff-stages.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-stages.c b/diff-stages.c index 9d8cc73e67..738fe5d987 100644 --- 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) |