mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-15 16:53:25 +00:00
fix(config): by default, render git refs as green instead of magenta
Summary: Someone on Discord mentioned that while using branches, they could switch between branches like `m1` and `main`, but not `HEAD@git`, even though it was color coded the same and located right next to the other branch names in the default `jj log` output. This confused me too at first, until I realized `jj` was telling me that the given commit was the `HEAD` reference in the colocated git repo. Let's just color these references differently in the default schema, to try and hint that these aren't the same. `bright green` is arbitrary, but helps stand out; and `green` was only picked because both it and `git` start with "g". GitHub Issue: #1843 Signed-off-by: Austin Seipp <aseipp@pobox.com> Change-Id: I66d53ea2b9155db1fec6cae8ba8cbd0f
This commit is contained in:
parent
7acdc8f011
commit
5c82100ef0
2 changed files with 4 additions and 4 deletions
|
@ -26,8 +26,8 @@
|
|||
"branch" = "magenta"
|
||||
"branches" = "magenta"
|
||||
"tags" = "magenta"
|
||||
"git_refs" = "magenta"
|
||||
"git_head" = "magenta"
|
||||
"git_refs" = "bright green"
|
||||
"git_head" = "bright green"
|
||||
"divergent" = "red"
|
||||
"divergent change_id"="red"
|
||||
"conflict" = "red"
|
||||
|
@ -44,7 +44,7 @@
|
|||
"working_copy branch" = "bright magenta"
|
||||
"working_copy branches" = "bright magenta"
|
||||
"working_copy tags" = "bright magenta"
|
||||
"working_copy git_refs" = "bright magenta"
|
||||
"working_copy git_refs" = "bright green"
|
||||
"working_copy divergent" = "bright red"
|
||||
"working_copy divergent change_id" = "bright red"
|
||||
"working_copy conflict" = "bright red"
|
||||
|
|
|
@ -281,7 +281,7 @@ fn test_log_git_head() {
|
|||
insta::assert_snapshot!(stdout, @r###"
|
||||
@ [1m[38;5;13mr[38;5;8mlvkpnrzqnoo[39m [38;5;3mtest.user@example.com[39m [38;5;14m2001-02-03 04:05:09.000 +07:00[39m [38;5;12m5[38;5;8m0aaf4754c1e[39m[0m
|
||||
│ [1minitial[0m
|
||||
◉ [1m[38;5;5mq[0m[38;5;8mpvuntsmwlqt[39m [38;5;3mtest.user@example.com[39m [38;5;6m2001-02-03 04:05:07.000 +07:00[39m [38;5;5mmaster[39m [38;5;5mHEAD@git[39m [1m[38;5;4m2[0m[38;5;8m30dd059e1b0[39m
|
||||
◉ [1m[38;5;5mq[0m[38;5;8mpvuntsmwlqt[39m [38;5;3mtest.user@example.com[39m [38;5;6m2001-02-03 04:05:07.000 +07:00[39m [38;5;5mmaster[39m [38;5;10mHEAD@git[39m [1m[38;5;4m2[0m[38;5;8m30dd059e1b0[39m
|
||||
│ [38;5;2m(empty)[39m (no description set)
|
||||
◉ [1m[38;5;5mz[0m[38;5;8mzzzzzzzzzzz[39m [38;5;6m1970-01-01 00:00:00.000 +00:00[39m [1m[38;5;4m0[0m[38;5;8m00000000000[39m
|
||||
[38;5;2m(empty)[39m (no description set)
|
||||
|
|
Loading…
Reference in a new issue