mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-18 02:04:19 +00:00
cli: in "show" template, indent description like Git does
This commit is contained in:
parent
8f8a9c91bc
commit
5d184e6694
2 changed files with 3 additions and 4 deletions
|
@ -60,7 +60,6 @@ show = 'show'
|
|||
'format_timestamp(timestamp)' = 'timestamp'
|
||||
|
||||
# TODO: Add branches, tags, etc
|
||||
# TODO: Indent the description like Git does
|
||||
'show' = '''
|
||||
concat(
|
||||
"Commit ID: " ++ commit_id ++ "\n",
|
||||
|
@ -68,7 +67,7 @@ concat(
|
|||
"Author: " ++ author ++ " (" ++ format_timestamp(author.timestamp()) ++ ")\n",
|
||||
"Committer: " ++ committer ++ " (" ++ format_timestamp(committer.timestamp()) ++ ")\n",
|
||||
"\n",
|
||||
if(description, description, description_placeholder ++ "\n"),
|
||||
indent(" ", if(description, description, description_placeholder ++ "\n")),
|
||||
"\n",
|
||||
)
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue