Skip to content
  • Johannes Schindelin's avatar
    range-diff: use dim/bold cues to improve dual color mode · a7be92ac
    Johannes Schindelin authored and Junio C Hamano's avatar Junio C Hamano committed
    It *is* a confusing thing to look at a diff of diffs. All too easy is it
    to mix up whether the -/+ markers refer to the "inner" or the "outer"
    diff, i.e. whether a `+` indicates that a line was added by either the
    old or the new diff (or both), or whether the new diff does something
    different than the old diff.
    
    To make things easier to process for normal developers, we introduced
    the dual color mode which colors the lines according to the commit diff,
    i.e. lines that are added by a commit (whether old, new, or both) are
    colored in green. In non-dual color mode, the lines would be colored
    according to the outer diff: if the old commit added a line, it would be
    colored red (because that line addition is only present in the first
    commit range that was specified on the command-line, i.e. the "old"
    commit, but not in the second commit range, i.e. the "new" commit).
    
    However, this dual color mode is still not making things clear enough,
    as we are looking...
    a7be92ac