Skip to content
  • Junio C Hamano's avatar
    diff: Fix miscounting of --check output · 0ef617f4
    Junio C Hamano authored
    c1795bb0
    
     (Unify whitespace checking) incorrectly made the
    checking function return without incrementing the line numbers
    when there is no whitespace problem is found on a '+' line.
    
    This resurrects the earlier behaviour.
    
    Noticed and reported by Jay Soffian.  The test script was stolen
    from Jay's independent fix.
    
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    0ef617f4