From df6d953116a87b430d5c1f17dd56681e05e4e2cc Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Mon, 10 Jul 2023 22:57:25 -0700 Subject: [PATCH] cli: render `HEAD@git` in green instead of bright green To me, green looks less distracting. Also, we mostly use bright colors for the working copy commit. This follows up on #1844. --- src/config/colors.toml | 4 ++-- tests/test_commit_template.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/colors.toml b/src/config/colors.toml index cc5ccafc5..5d4af3d18 100644 --- a/src/config/colors.toml +++ b/src/config/colors.toml @@ -26,8 +26,8 @@ "branch" = "magenta" "branches" = "magenta" "tags" = "magenta" -"git_refs" = "bright green" -"git_head" = "bright green" +"git_refs" = "green" +"git_head" = "green" "divergent" = "red" "divergent change_id"="red" "conflict" = "red" diff --git a/tests/test_commit_template.rs b/tests/test_commit_template.rs index df442a024..9d911784a 100644 --- a/tests/test_commit_template.rs +++ b/tests/test_commit_template.rs @@ -281,7 +281,7 @@ fn test_log_git_head() { insta::assert_snapshot!(stdout, @r###" @ rlvkpnrzqnoo test.user@example.com 2001-02-03 04:05:09.000 +07:00 50aaf4754c1e │ initial - ◉ qpvuntsmwlqt test.user@example.com 2001-02-03 04:05:07.000 +07:00 master HEAD@git 230dd059e1b0 + ◉ qpvuntsmwlqt test.user@example.com 2001-02-03 04:05:07.000 +07:00 master HEAD@git 230dd059e1b0 │ (empty) (no description set) ◉ zzzzzzzzzzzz 1970-01-01 00:00:00.000 +00:00 000000000000 (empty) (no description set)