mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-18 10:07:28 +00:00
cli: omit log template separator if author.email() is empty
This commit is contained in:
parent
eb3aeb42dc
commit
fbd6657e3f
4 changed files with 15 additions and 15 deletions
|
@ -1426,7 +1426,7 @@ fn log_template(settings: &UserSettings) -> String {
|
||||||
if(divergent,
|
if(divergent,
|
||||||
label("divergent", change_id.{prefix_format} "??"),
|
label("divergent", change_id.{prefix_format} "??"),
|
||||||
change_id.{prefix_format})
|
change_id.{prefix_format})
|
||||||
" " author.email()
|
if(author.email(), " " author.email())
|
||||||
" " {committer_timestamp}
|
" " {committer_timestamp}
|
||||||
if(branches, " " branches)
|
if(branches, " " branches)
|
||||||
if(tags, " " tags)
|
if(tags, " " tags)
|
||||||
|
|
Loading…
Reference in a new issue