From 1296d2012681a71005544faaa93ab3554516bf12 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Wed, 7 Feb 2024 18:21:08 +0900 Subject: [PATCH] templates: use surround() function in default "show" template This isn't a great example of surround(), but works. --- cli/src/config/templates.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/config/templates.toml b/cli/src/config/templates.toml index 1a5355ee7..a2b66c6e8 100644 --- a/cli/src/config/templates.toml +++ b/cli/src/config/templates.toml @@ -80,8 +80,8 @@ builtin_log_comfortable = 'builtin_log_compact ++ "\n"' concat( "Commit ID: " ++ commit_id ++ "\n", "Change ID: " ++ change_id ++ "\n", - if(branches, "Branches: " ++ separate(" ", local_branches, remote_branches) ++ "\n"), - if(tags, "Tags: " ++ tags ++ "\n"), + surround("Branches: ", "\n", separate(" ", local_branches, remote_branches)), + surround("Tags: ", "\n", tags), "Author: " ++ format_detailed_signature(author) ++ "\n", "Committer: " ++ format_detailed_signature(committer) ++ "\n", "\n",