Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Kumar <abhishekkumar8222@gmail.com>2020-02-24 16:38:14 +0300
committerJunio C Hamano <gitster@pobox.com>2020-02-25 00:15:04 +0300
commitffe005576ac2bd46021fc80112ba7e8e0ab5dd10 (patch)
treef2c384d7aa7350d176bb31814a8f257355a93d4d /t/lib-log-graph.sh
parent989eea958bb3a334c73abcfffb9aa3ec3ed56766 (diff)
lib-log-graph: consolidate colored graph cmp logic
Signed-off-by: Abhishek Kumar <abhishekkumar8222@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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
+}