From a0ae09f461021c6e568fd287a0c6f2043b0594f2 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sun, 27 Aug 2023 08:52:29 +0900 Subject: [PATCH] templates: reword signature placeholders to match description --- cli/src/config/templates.toml | 4 ++-- cli/tests/test_commit_template.rs | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cli/src/config/templates.toml b/cli/src/config/templates.toml index e1f535d7f..a05961cbe 100644 --- a/cli/src/config/templates.toml +++ b/cli/src/config/templates.toml @@ -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: diff --git a/cli/tests/test_commit_template.rs b/cli/tests/test_commit_template.rs index d6a9761e4..6597d2982 100644 --- a/cli/tests/test_commit_template.rs +++ b/cli/tests/test_commit_template.rs @@ -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)