git-diff-*: support "-u" as a synonym for "-p"
I'm probably not the only one whose fingers have gotten hard-wired to use "-u" for "unified diff".
This commit is contained in:
@ -438,7 +438,7 @@ int main(int argc, const char **argv)
|
||||
diff_setup_opt |= DIFF_SETUP_REVERSE;
|
||||
continue;
|
||||
}
|
||||
if (!strcmp(arg, "-p")) {
|
||||
if (!strcmp(arg, "-p") || !strcmp(arg, "-u")) {
|
||||
diff_output_format = DIFF_FORMAT_PATCH;
|
||||
recursive = 1;
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user