Skip to content
  • Jeff King's avatar
    add--interactive: detect bogus diffFilter output · 42f7d454
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    It's important that the diff-filter only filter the
    individual lines, and that there remain a one-to-one mapping
    between the input and output lines. Otherwise, things like
    hunk-splitting will behave quite unexpectedly (e.g., you
    think you are splitting at one point, but it has a different
    effect in the text patch we apply).
    
    We can't detect all problematic cases, but we can at least
    catch the obvious case where we don't even have the correct
    number of lines.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    42f7d454