Code

commit: stop setting rename limit
authorJeff King <peff@peff.net>
Sat, 19 Feb 2011 10:21:57 +0000 (05:21 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Feb 2011 18:23:41 +0000 (10:23 -0800)
For its post-commit summary, commit was explicitly setting
the default rename limit to 100. Presumably when the code
was added, it was necessary to do so. These days, however,
it will fall back properly to the diff default, and that
default has long since changed from 100.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c

index 03cff5af631fec975442c528b1ffba264b879c8e..9f6b3cb82a33bd7aad2776d7eb25b276f7897507 100644 (file)
@@ -1215,7 +1215,6 @@ static void print_summary(const char *prefix, const unsigned char *sha1)
        get_commit_format(format.buf, &rev);
        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);