aboutsummaryrefslogtreecommitdiff
path: root/builtin-commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-12-16 15:03:58 -0800
committerJunio C Hamano <gitster@pobox.com>2007-12-16 15:03:58 -0800
commit1596456309315befb3fd0a985d50a70ed09493e4 (patch)
treef31fd1230becd9f0466f2350a8eeb5a27f5ec247 /builtin-commit.c
parentb90ced0f7da0b8dcdac1aabd8840a23daef25b43 (diff)
downloadgit-1596456309315befb3fd0a985d50a70ed09493e4.tar.gz
git-1596456309315befb3fd0a985d50a70ed09493e4.tar.xz
builtin-commit: fix summary output.
Because print_summary() forgot to call diff_setup_done() after futzing with diff output options, it failed to activate recursive diff, which resulted in an incorrect summary. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-commit.c')
-rw-r--r--builtin-commit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-commit.c b/builtin-commit.c
index 518ebe034..61770ef45 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -662,6 +662,7 @@ static void print_summary(const char *prefix, const unsigned char *sha1)
rev.show_root_diff = 1;
rev.commit_format = get_commit_format("format:%h: %s");
rev.always_show_header = 0;
+ diff_setup_done(&rev.diffopt);
printf("Created %scommit ", initial_commit ? "initial " : "");