templates: reword signature placeholders to match description

This commit is contained in:
Yuya Nishihara 2023-08-27 08:52:29 +09:00
parent f422f1300c
commit a0ae09f461
2 changed files with 9 additions and 9 deletions

View file

@ -123,8 +123,8 @@ separate(" ",
description_placeholder = '''
label(if(empty, "empty ") ++ "description placeholder", "(no description set)")'''
email_placeholder = 'label("email placeholder", "(no email available)")'
name_placeholder = 'label("name placeholder", "(no name available)")'
email_placeholder = 'label("email placeholder", "(no email set)")'
name_placeholder = 'label("name placeholder", "(no name set)")'
commit_summary_separator = 'label("separator", " | ")'
# Hook points for users to customize the default templates:

View file

@ -182,13 +182,13 @@ fn test_log_builtin_templates() {
);
insta::assert_snapshot!(render(r#"builtin_log_oneline"#), @r###"
@ rlvkpnrz (no email available) 2001-02-03 04:05:08.000 +07:00 dc315397 (empty) (no description set)
@ rlvkpnrz (no email set) 2001-02-03 04:05:08.000 +07:00 dc315397 (empty) (no description set)
qpvuntsm test.user 2001-02-03 04:05:07.000 +07:00 230dd059 (empty) (no description set)
zzzzzzzz root 00000000
"###);
insta::assert_snapshot!(render(r#"builtin_log_compact"#), @r###"
@ rlvkpnrz (no email available) 2001-02-03 04:05:08.000 +07:00 dc315397
@ rlvkpnrz (no email set) 2001-02-03 04:05:08.000 +07:00 dc315397
(empty) (no description set)
qpvuntsm test.user@example.com 2001-02-03 04:05:07.000 +07:00 230dd059
(empty) (no description set)
@ -196,7 +196,7 @@ fn test_log_builtin_templates() {
"###);
insta::assert_snapshot!(render(r#"builtin_log_comfortable"#), @r###"
@ rlvkpnrz (no email available) 2001-02-03 04:05:08.000 +07:00 dc315397
@ rlvkpnrz (no email set) 2001-02-03 04:05:08.000 +07:00 dc315397
(empty) (no description set)
qpvuntsm test.user@example.com 2001-02-03 04:05:07.000 +07:00 230dd059
@ -208,8 +208,8 @@ fn test_log_builtin_templates() {
insta::assert_snapshot!(render(r#"builtin_log_detailed"#), @r###"
@ Commit ID: dc31539712c7294d1d712cec63cef4504b94ca74
Change ID: rlvkpnrzqnoowoytxnquwvuryrwnrmlp
Author: (no name available) <(no email available)> (2001-02-03 04:05:08.000 +07:00)
Committer: (no name available) <(no email available)> (2001-02-03 04:05:08.000 +07:00)
Author: (no name set) <(no email set)> (2001-02-03 04:05:08.000 +07:00)
Committer: (no name set) <(no email set)> (2001-02-03 04:05:08.000 +07:00)
(no description set)
@ -222,8 +222,8 @@ fn test_log_builtin_templates() {
Commit ID: 0000000000000000000000000000000000000000
Change ID: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Author: (no name available) <(no email available)> (1970-01-01 00:00:00.000 +00:00)
Committer: (no name available) <(no email available)> (1970-01-01 00:00:00.000 +00:00)
Author: (no name set) <(no email set)> (1970-01-01 00:00:00.000 +00:00)
Committer: (no name set) <(no email set)> (1970-01-01 00:00:00.000 +00:00)
(no description set)