aboutsummaryrefslogtreecommitdiffstats
path: root/t/lib-log-graph.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/lib-log-graph.sh')
-rwxr-xr-xt/lib-log-graph.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/lib-log-graph.sh b/t/lib-log-graph.sh
index f9c6526eff..1184cceef2 100755
--- a/t/lib-log-graph.sh
+++ b/t/lib-log-graph.sh
@@ -20,3 +20,9 @@ lib_test_cmp_short_graph () {
sanitize_log_output >output.sanitized <output &&
test_i18ncmp expect output.sanitized
}
+
+lib_test_cmp_colored_graph () {
+ git log --graph --color=always "$@" >output.colors.raw &&
+ test_decode_color <output.colors.raw | sed "s/ *\$//" >output.colors &&
+ test_cmp expect.colors output.colors
+}