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:
Yuya Nishihara 2025-08-22 09:37:46 +09:00
parent cd673311d0
commit 0367c96037

View file

@ -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()),
),
)