Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin-commit: make summary output consistent with status
author
Junio C Hamano
<gitster@pobox.com>
Sun, 16 Dec 2007 23:05:39 +0000
(15:05 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 16 Dec 2007 23:05:39 +0000
(15:05 -0800)
This enables -B -M to the summary output after a commit is made so that
it is in line with what is shown in git-status and commit log template.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
1596456
)
diff --git
a/builtin-commit.c
b/builtin-commit.c
index 61770ef456ca7f5f8342796e66f7ebfd3e1e7f73..0a9101324f422e90651d612666a06a138d06507b 100644
(file)
--- a/
builtin-commit.c
+++ b/
builtin-commit.c
@@
-662,6
+662,9
@@
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.diffopt.detect_rename = 1;
+ rev.diffopt.rename_limit = 100;
+ rev.diffopt.break_opt = 0;
diff_setup_done(&rev.diffopt);
printf("Created %scommit ", initial_commit ? "initial " : "");