• S
    diff.c: migrate emit_line_checked to use emit_diff_symbol · 091f8e28
    Stefan Beller 提交于
    Add a new flags field to emit_diff_symbol, that will be used by
    context lines for:
    * white space rules that are applicable (The first 12 bits)
      Take a note in cahe.c as well, when this ws rules are extended we have
      to fix the bits in the flags field.
    * how the rules are evaluated (actually this double encodes the sign
      of the line, but the code is easier to keep this way, bits 13,14,15)
    * if the line a blank line at EOF (bit 16)
    
    The check if new lines need to be marked up as extra lines at the end of
    file, is now done unconditionally. That should be ok, as
    'new_blank_line_at_eof' has a quick early return.
    Signed-off-by: NStefan Beller <sbeller@google.com>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    091f8e28
cache.h 71.9 KB