mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-18 10:07:28 +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'
|
'format_timestamp(timestamp)' = 'timestamp'
|
||||||
|
|
||||||
# TODO: Add branches, tags, etc
|
# TODO: Add branches, tags, etc
|
||||||
# TODO: Indent the description like Git does
|
|
||||||
'show' = '''
|
'show' = '''
|
||||||
concat(
|
concat(
|
||||||
"Commit ID: " ++ commit_id ++ "\n",
|
"Commit ID: " ++ commit_id ++ "\n",
|
||||||
|
@ -68,7 +67,7 @@ concat(
|
||||||
"Author: " ++ author ++ " (" ++ format_timestamp(author.timestamp()) ++ ")\n",
|
"Author: " ++ author ++ " (" ++ format_timestamp(author.timestamp()) ++ ")\n",
|
||||||
"Committer: " ++ committer ++ " (" ++ format_timestamp(committer.timestamp()) ++ ")\n",
|
"Committer: " ++ committer ++ " (" ++ format_timestamp(committer.timestamp()) ++ ")\n",
|
||||||
"\n",
|
"\n",
|
||||||
if(description, description, description_placeholder ++ "\n"),
|
indent(" ", if(description, description, description_placeholder ++ "\n")),
|
||||||
"\n",
|
"\n",
|
||||||
)
|
)
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue