diff-highlight: test interleaved parallel lines of history
commit7ce2f4ca0e35a987fb29d11ae06438a93fd48873
authorJeff King <peff@peff.net>
Wed, 21 Mar 2018 05:49:26 +0000 (21 01:49 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Mar 2018 17:24:19 +0000 (21 10:24 -0700)
tree9df5250709b9b2b2f3487b9fc7264afd125d352b
parente28ae5072f633d77c65817db7b3aeb07d531a8d9
diff-highlight: test interleaved parallel lines of history

The graph test in t9400 covers the case of two simultaneous
branches, but all of the commits during this time are on the
right-hand branch. So we test a graph structure like:

  | |
  | * commit ...
  | |

but we never see the reverse, a commit on the left-hand
branch:

  | |
  * | commit ...
  | |

Since this is an easy thing to get wrong when touching the
graph-matching code, let's cover it by adding one more
commit with its timestamp interleaved with the other branch.

Note that we need to pass --date-order to convince Git to
show it this way (since --topo-order tries to keep lines of
history separate).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/diff-highlight/t/t9400-diff-highlight.sh