Skip to content
  • Bo Yang's avatar
    Make diffcore_std only can run once before a diff_flush · 1da6175d
    Bo Yang authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    When file renames/copies detection is turned on, the
    second diffcore_std will degrade a 'C' pair to a 'R' pair.
    
    And this may happen when we run 'git log --follow' with
    hard copies finding. That is, the try_to_follow_renames()
    will run diffcore_std to find the copies, and then
    'git log' will issue another diffcore_std, which will reduce
    'src->rename_used' and recognize this copy as a rename.
    This is not what we want.
    
    So, I think we really don't need to run diffcore_std more
    than one time.
    
    Signed-off-by: default avatarBo Yang <struggleyb.nku@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    1da6175d