@matheusbsbs / matheus-bagliano / commits / 3eb2a15eb3
Fork 0

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>

Junio C Hamano committed Dec 16, 2007 at 15:05 UTC 3eb2a15eb385749fbfe59b4e37fc754416275760
1 file changed +3
builtin-commit.c
+3
@@ -662,6 +662,9 @@ static void print_summary(const char *prefix, const unsigned char *sha1)
662 rev.show_root_diff = 1;
663 rev.commit_format = get_commit_format("format:%h: %s");
664 rev.always_show_header = 0;
665 + rev.diffopt.detect_rename = 1;
666 + rev.diffopt.rename_limit = 100;
667 + rev.diffopt.break_opt = 0;
668 diff_setup_done(&rev.diffopt);
669
670 printf("Created %scommit ", initial_commit ? "initial " : "");