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>
Junio C Hamano committed
Dec 16, 2007 at 15:03 UTC
1596456309315befb3fd0a985d50a70ed09493e4
1 file changed
+1
builtin-commit.c
+1
@@ -662,6 +662,7 @@ static void print_summary(const char *prefix, const unsigned char *sha1)
662
rev.show_root_diff = 1;
663
rev.commit_format = get_commit_format("format:%h: %s");
664
rev.always_show_header = 0;
665
+ diff_setup_done(&rev.diffopt);
666
667
printf("Created %scommit ", initial_commit ? "initial " : "");
668