-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
templates: default placeholders to red
With the idea that less severe placeholders (like description) could (and should) explicitly "opt out". (Both email and name placeholders will be red with this change.)
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,21 +248,21 @@ fn test_log_builtin_templates_colored() { | |
); | ||
|
||
insta::assert_snapshot!(render(r#"builtin_log_oneline"#), @r###" | ||
@ [1m[38;5;13mr[38;5;8mlvkpnrz[39m [38;5;3m(no email set)[39m [38;5;14m2001-02-03 04:05:08.000 +07:00[39m [38;5;12md[38;5;8mc315397[39m [38;5;10m(empty)[39m [38;5;10m(no description set)[39m[0m | ||
@ [1m[38;5;13mr[38;5;8mlvkpnrz[39m [38;5;9m(no email set)[39m [38;5;14m2001-02-03 04:05:08.000 +07:00[39m [38;5;12md[38;5;8mc315397[39m [38;5;10m(empty)[39m [38;5;10m(no description set)[39m[0m | ||
◉ [1m[38;5;5mq[0m[38;5;8mpvuntsm[39m [38;5;3mtest.user[39m [38;5;6m2001-02-03 04:05:07.000 +07:00[39m [1m[38;5;4m2[0m[38;5;8m30dd059[39m [38;5;2m(empty)[39m [38;5;2m(no description set)[39m | ||
◉ [1m[38;5;5mz[0m[38;5;8mzzzzzzz[39m [38;5;2mroot[39m [1m[38;5;4m0[0m[38;5;8m0000000[39m | ||
"###); | ||
|
||
insta::assert_snapshot!(render(r#"builtin_log_compact"#), @r###" | ||
@ [1m[38;5;13mr[38;5;8mlvkpnrz[39m [38;5;3m(no email set)[39m [38;5;14m2001-02-03 04:05:08.000 +07:00[39m [38;5;12md[38;5;8mc315397[39m[0m | ||
@ [1m[38;5;13mr[38;5;8mlvkpnrz[39m [38;5;9m(no email set)[39m [38;5;14m2001-02-03 04:05:08.000 +07:00[39m [38;5;12md[38;5;8mc315397[39m[0m | ||
│ [1m[38;5;10m(empty)[39m [38;5;10m(no description set)[39m[0m | ||
◉ [1m[38;5;5mq[0m[38;5;8mpvuntsm[39m [38;5;[email protected][39m [38;5;6m2001-02-03 04:05:07.000 +07:00[39m [1m[38;5;4m2[0m[38;5;8m30dd059[39m | ||
│ [38;5;2m(empty)[39m [38;5;2m(no description set)[39m | ||
◉ [1m[38;5;5mz[0m[38;5;8mzzzzzzz[39m [38;5;2mroot[39m [1m[38;5;4m0[0m[38;5;8m0000000[39m | ||
"###); | ||
|
||
insta::assert_snapshot!(render(r#"builtin_log_comfortable"#), @r###" | ||
@ [1m[38;5;13mr[38;5;8mlvkpnrz[39m [38;5;3m(no email set)[39m [38;5;14m2001-02-03 04:05:08.000 +07:00[39m [38;5;12md[38;5;8mc315397[39m[0m | ||
@ [1m[38;5;13mr[38;5;8mlvkpnrz[39m [38;5;9m(no email set)[39m [38;5;14m2001-02-03 04:05:08.000 +07:00[39m [38;5;12md[38;5;8mc315397[39m[0m | ||
│ [1m[38;5;10m(empty)[39m [38;5;10m(no description set)[39m[0m | ||
│ | ||
◉ [1m[38;5;5mq[0m[38;5;8mpvuntsm[39m [38;5;[email protected][39m [38;5;6m2001-02-03 04:05:07.000 +07:00[39m [1m[38;5;4m2[0m[38;5;8m30dd059[39m | ||
|
@@ -274,8 +274,8 @@ fn test_log_builtin_templates_colored() { | |
insta::assert_snapshot!(render(r#"builtin_log_detailed"#), @r###" | ||
@ Commit ID: [38;5;4mdc31539712c7294d1d712cec63cef4504b94ca74[39m | ||
│ Change ID: [38;5;5mrlvkpnrzqnoowoytxnquwvuryrwnrmlp[39m | ||
│ Author: (no name set) <[38;5;3m(no email set)[39m> ([38;5;6m2001-02-03 04:05:08.000 +07:00[39m) | ||
│ Committer: (no name set) <[38;5;3m(no email set)[39m> ([38;5;6m2001-02-03 04:05:08.000 +07:00[39m) | ||
│ Author: [38;5;1m(no name set)[39m <[38;5;1m(no email set)[39m> ([38;5;6m2001-02-03 04:05:08.000 +07:00[39m) | ||
│ Committer: [38;5;1m(no name set)[39m <[38;5;1m(no email set)[39m> ([38;5;6m2001-02-03 04:05:08.000 +07:00[39m) | ||
│ | ||
│ [38;5;2m (no description set)[39m | ||
│ | ||
|
@@ -288,8 +288,8 @@ fn test_log_builtin_templates_colored() { | |
│ | ||
◉ Commit ID: [38;5;4m0000000000000000000000000000000000000000[39m | ||
Change ID: [38;5;5mzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz[39m | ||
Author: (no name set) <[38;5;3m(no email set)[39m> ([38;5;6m1970-01-01 00:00:00.000 +00:00[39m) | ||
Committer: (no name set) <[38;5;3m(no email set)[39m> ([38;5;6m1970-01-01 00:00:00.000 +00:00[39m) | ||
Author: [38;5;1m(no name set)[39m <[38;5;1m(no email set)[39m> ([38;5;6m1970-01-01 00:00:00.000 +00:00[39m) | ||
Committer: [38;5;1m(no name set)[39m <[38;5;1m(no email set)[39m> ([38;5;6m1970-01-01 00:00:00.000 +00:00[39m) | ||
[38;5;2m (no description set)[39m | ||
|