Commit 15964563 authored by Junio C Hamano's avatar Junio C Hamano

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: default avatarJunio C Hamano <[email protected]>
parent b90ced0f
......@@ -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;
printf("Created %scommit ", initial_commit ? "initial " : "");
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment