mirror of
https://github.com/git/git.git
synced 2026-03-29 11:00:07 +02:00
Merge branch 'master' into next
* master: Documentation/gitdiffcore: fix order in pickaxe description Documentation: fix minor inconsistency Documentation: rebase -i ignores options passed to "git am" diff-options: make --patch a synonym for -p for-each-ref: Field with abbreviated objectname hash_object: correction for zero length file gitweb: Use @diff_opts while using format-patch
This commit is contained in:
2
diff.c
2
diff.c
@@ -2779,7 +2779,7 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac)
|
||||
const char *arg = av[0];
|
||||
|
||||
/* Output format options */
|
||||
if (!strcmp(arg, "-p") || !strcmp(arg, "-u"))
|
||||
if (!strcmp(arg, "-p") || !strcmp(arg, "-u") || !strcmp(arg, "--patch"))
|
||||
options->output_format |= DIFF_FORMAT_PATCH;
|
||||
else if (opt_arg(arg, 'U', "unified", &options->context))
|
||||
options->output_format |= DIFF_FORMAT_PATCH;
|
||||
|
||||
Reference in New Issue
Block a user