ok/jj
1
0
Fork 0
forked from mirrors/jj

templates: use surround() function in default "show" template

This isn't a great example of surround(), but works.
This commit is contained in:
Yuya Nishihara 2024-02-07 18:21:08 +09:00
parent 4f0db3607a
commit 1296d20126

View file

@ -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",