diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-12-16 15:05:39 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-16 15:05:39 -0800 |
commit | 3eb2a15eb385749fbfe59b4e37fc754416275760 (patch) | |
tree | 413b6d9eea59358bfef4b31a3f1595fd7f9b426b /builtin-commit.c | |
parent | 1596456309315befb3fd0a985d50a70ed09493e4 (diff) | |
download | git-3eb2a15eb385749fbfe59b4e37fc754416275760.tar.gz |
builtin-commit: make summary output consistent with status
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>
Diffstat (limited to 'builtin-commit.c')
-rw-r--r-- | builtin-commit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin-commit.c b/builtin-commit.c index 61770ef456..0a9101324f 100644 --- 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 " : ""); |