summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dce5ef1)
raw | patch | inline | side by side (parent: dce5ef1)
author | Björn Gustavsson <bgustavsson@gmail.com> | |
Sat, 7 Nov 2009 09:58:55 +0000 (10:58 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 10 Nov 2009 19:47:30 +0000 (11:47 -0800) |
"-p" means "generate patch" in 'git log' and 'git diff', so it's
quite surprising that it means "suppress diffstat" in
'git format-patch'.
Keep the "-p" option for backward compatibility, but add
"--no-stat" as a more intuitive synonym. For backward compatibility
with scripts, we must allow combinations of --stat and --no-stat.
Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
quite surprising that it means "suppress diffstat" in
'git format-patch'.
Keep the "-p" option for backward compatibility, but add
"--no-stat" as a more intuitive synonym. For backward compatibility
with scripts, we must allow combinations of --stat and --no-stat.
Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-options.txt | patch | blob | history | |
builtin-log.c | patch | blob | history |
index 9398329706e64d6f0de6d209f88d33738aad7ad4..8f793825626bedb05b12e58e0f380eec42916213 100644 (file)
ifdef::git-format-patch[]
-p::
+--no-stat::
Generate plain patches without any diffstats.
endif::git-format-patch[]
diff --git a/builtin-log.c b/builtin-log.c
index ce7ab810c8654c51ca5ae4f0f06fa43d8f3330e7..06424f3ca8828244df2c959ed99ae898df66b0c0 100644 (file)
--- a/builtin-log.c
+++ b/builtin-log.c
"don't output binary diffs"),
OPT_BOOLEAN(0, "ignore-if-in-upstream", &ignore_if_in_upstream,
"don't include a patch matching a commit upstream"),
- OPT_BOOLEAN('p', NULL, &use_patch_format,
- "show patch format instead of default (patch + stat)"),
+ { OPTION_BOOLEAN, 'p', "no-stat", &use_patch_format, NULL,
+ "show patch format instead of default (patch + stat)",
+ PARSE_OPT_NONEG | PARSE_OPT_NOARG },
OPT_GROUP("Messaging"),
{ OPTION_CALLBACK, 0, "add-header", NULL, "header",
"add email header", PARSE_OPT_NONEG,