Skip to content
  • Matthieu Moy's avatar
    diff: activate diff.renames by default · 5404c116
    Matthieu Moy authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarMatthieu Moy <Matthieu.Moy@imag.fr>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    5404c116