Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin-commit: fix summary output.
author
Junio C Hamano
<gitster@pobox.com>
Sun, 16 Dec 2007 23:03:58 +0000
(15:03 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 16 Dec 2007 23:03:58 +0000
(15:03 -0800)
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>
builtin-commit.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
b90ced0
)
diff --git
a/builtin-commit.c
b/builtin-commit.c
index 518ebe0347e631c72f4e2a83b948259ee20fd213..61770ef456ca7f5f8342796e66f7ebfd3e1e7f73 100644
(file)
--- 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;
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 " : "");
printf("Created %scommit ", initial_commit ? "initial " : "");