mirror of
https://github.com/git/git.git
synced 2024-11-24 18:33:43 +08:00
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>
This commit is contained in:
parent
1596456309
commit
3eb2a15eb3
@ -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 " : "");
|
||||
|
Loading…
Reference in New Issue
Block a user