• J
    diff --whitespace: fix blank lines at end · d68fe26f
    Junio C Hamano 提交于
    The earlier logic tried to colour any and all blank lines that were added
    beyond the last blank line in the original, but this was very wrong.  If
    you added 96 blank lines, a non-blank line, and then 3 blank lines at the
    end, only the last 3 lines should trigger the error, not the earlier 96
    blank lines.
    
    We need to also make sure that the lines are after the last non-blank line
    in the postimage as well before deciding to paint them.
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    d68fe26f
t4019-diff-wserror.sh 4.5 KB