summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 67687fe)
raw | patch | inline | side by side (parent: 67687fe)
author | Will Palmer <wmpalmer@gmail.com> | |
Thu, 13 May 2010 08:59:00 +0000 (09:59 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 19 May 2010 04:50:03 +0000 (21:50 -0700) |
Here we simply make --patch a synonym for -p, whose mnemonic was "patch"
all along.
Signed-off-by: Will Palmer <wmpalmer@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
all along.
Signed-off-by: Will Palmer <wmpalmer@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-options.txt | patch | blob | history | |
diff.c | patch | blob | history |
index c9c6c2b1cb61caa6db5e029d6bce1c76a6c075a7..4a968591cb5cb5571f14733b7de1f15f3509f32c 100644 (file)
ifndef::git-format-patch[]
-p::
-u::
+--patch::
Generate patch (see section on generating patches).
{git-diff? This is the default.}
endif::git-format-patch[]
index e49f14a92442117a8e8424bd7a750dc4fda5cab2..43a313deba54ee6b943dd86c8db6675b145b092a 100644 (file)
--- a/diff.c
+++ b/diff.c
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;