Skip to content

Commit

Permalink
builtin-commit: fix summary output.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gitster committed Dec 16, 2007
1 parent b90ced0 commit 1596456
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin-commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 " : "");

Expand Down

0 comments on commit 1596456

Please sign in to comment.