mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-28 15:34:22 +00:00
cli: move default "show" template to alias
I'm not pretty sure if this is structurally good, but 'jj log -T show' is useful.
This commit is contained in:
parent
65ff1afb0d
commit
0abf9ce8cd
1 changed files with 7 additions and 4 deletions
|
@ -26,9 +26,15 @@ label(if(current_working_copy, "working_copy"),
|
|||
)
|
||||
'''
|
||||
|
||||
# Defined as alias to allow 'log -T show'
|
||||
show = 'show'
|
||||
|
||||
[template-aliases]
|
||||
'description_placeholder' = 'label("description", "(no description set)")'
|
||||
|
||||
# TODO: Add branches, tags, etc
|
||||
# TODO: Indent the description like Git does
|
||||
show = '''
|
||||
'show' = '''
|
||||
"Commit ID: " commit_id "\n"
|
||||
"Change ID: " change_id "\n"
|
||||
"Author: " author " (" format_timestamp(author.timestamp()) ")\n"
|
||||
|
@ -37,6 +43,3 @@ show = '''
|
|||
if(description, description, description_placeholder "\n")
|
||||
"\n"
|
||||
'''
|
||||
|
||||
[template-aliases]
|
||||
'description_placeholder' = 'label("description", "(no description set)")'
|
||||
|
|
Loading…
Reference in a new issue