diff: activate diff.renames by default
commit5404c116aa921d7e2f9408e103c80b7801735d08
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Thu, 25 Feb 2016 08:59:21 +0000 (25 09:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Feb 2016 19:31:02 +0000 (25 11:31 -0800)
tree2a6e3a05b37e19e76242f0fdf54eba73879377f9
parent9501d191adca307d6fbe3f2ab111fa20414dd893
diff: activate diff.renames by default

Rename detection is a very convenient feature, and new users shouldn't
have to dig in the documentation to benefit from it.

Potential objections to activating rename detection are that it
sometimes fail, and it is sometimes slow. But rename detection is
already activated by default in several cases like "git status" and "git
merge", so activating diff.renames does not fundamentally change the
situation. When the rename detection fails, it now fails consistently
between "git diff" and "git status".

This setting does not affect plumbing commands, hence well-written
scripts will not be affected.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 files changed:
Documentation/diff-config.txt
builtin/commit.c
builtin/diff.c
builtin/log.c
builtin/merge.c
diff.c
diff.h
t/t4001-diff-rename.sh
t/t4013-diff-various.sh
t/t4014-format-patch.sh
t/t4047-diff-dirstat.sh
t/t4202-log.sh