From: Junio C Hamano Date: Sun, 16 Dec 2007 23:03:58 +0000 (-0800) Subject: builtin-commit: fix summary output. X-Git-Tag: v1.5.4-rc1~31 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1596456309315befb3fd0a985d50a70ed09493e4;p=git.git 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 --- 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 " : "");