mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-19 19:08:08 +00:00
templates: use surround() function in default "show" template
This isn't a great example of surround(), but works.
This commit is contained in:
parent
4f0db3607a
commit
1296d20126
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue