mirror of
https://github.com/jj-vcs/jj.git
synced 2025-12-23 06:01:01 +00:00
templates: simplify blank line insertion in default draft commit description
Since there exists at least one "JJ:" line, we no longer need to insert blank line conditionally.
This commit is contained in:
parent
cd673311d0
commit
0367c96037
1 changed files with 3 additions and 2 deletions
|
|
@ -118,9 +118,10 @@ label(if(overridden, "overridden"),
|
|||
builtin_draft_commit_description = '''
|
||||
concat(
|
||||
coalesce(description, default_commit_description, "\n"),
|
||||
"\nJJ: Change ID: " ++ format_short_change_id(change_id) ++ "",
|
||||
"\n",
|
||||
"JJ: Change ID: " ++ format_short_change_id(change_id) ++ "\n",
|
||||
surround(
|
||||
"\nJJ: This commit contains the following changes:\n", "",
|
||||
"JJ: This commit contains the following changes:\n", "",
|
||||
indent("JJ: ", diff.summary()),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue