test_cmp expect actual
'
+cat > expect <<\EOF
+| | | * Merge branch 'side'
+| | | |\
+| | | | * side-2
+| | | | * side-1
+| | | * | Second
+| | | * | sixth
+| | | * | fifth
+| | | * | fourth
+| | | |/
+| | | * third
+| | | * second
+| | | * initial
+EOF
+
+test_expect_success 'log --graph --line-prefix="| | | " with merge' '
+ git log --line-prefix="| | | " --graph --date-order --pretty=tformat:%s |
+ sed "s/ *\$//" >actual &&
+ test_cmp expect actual
+'
+
+ cat > expect.colors <<\EOF
+ * Merge branch 'side'
+ <BLUE>|<RESET><CYAN>\<RESET>
+ <BLUE>|<RESET> * side-2
+ <BLUE>|<RESET> * side-1
+ * <CYAN>|<RESET> Second
+ * <CYAN>|<RESET> sixth
+ * <CYAN>|<RESET> fifth
+ * <CYAN>|<RESET> fourth
+ <CYAN>|<RESET><CYAN>/<RESET>
+ * third
+ * second
+ * initial
+ EOF
+
+ test_expect_success 'log --graph with merge with log.graphColors' '
+ test_config log.graphColors " blue,invalid-color, cyan, red , " &&
+ git log --color=always --graph --date-order --pretty=tformat:%s |
+ test_decode_color | sed "s/ *\$//" >actual &&
+ test_cmp expect.colors actual
+ '
+
test_expect_success 'log --raw --graph -m with merge' '
git log --raw --graph --oneline -m master | head -n 500 >actual &&
grep "initial" actual