summaryrefslogtreecommitdiff
path: root/builtin-log.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-17 13:51:44 -0800
committerJunio C Hamano <junkio@cox.net>2007-01-17 23:48:20 -0800
commitc261e4385e826a4e7f9cf69618fa0b6e39defad2 (patch)
treed37c5e12f323a4fb740d6282e4c04bebddf35882 /builtin-log.c
parent7c496280104e02cb2a02dbbe0caf3510e0e87e42 (diff)
downloadgit-c261e4385e826a4e7f9cf69618fa0b6e39defad2.tar.gz
Add --summary to git-format-patch by default
This adds --summary output in addition to the --stat to the output from git-format-patch by default. I think additions, removals and filemode changes are rare but notable events and always showing it makes sense. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-log.c')
-rw-r--r--builtin-log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-log.c b/builtin-log.c
index 9453e6d2db..c32a1df0bb 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -468,7 +468,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
die ("unrecognized argument: %s", argv[1]);
if (!rev.diffopt.output_format)
- rev.diffopt.output_format = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
+ rev.diffopt.output_format = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_SUMMARY | DIFF_FORMAT_PATCH;
if (!output_directory)
output_directory = prefix;