jj: Automatically show git diff for commit descriptions

This commit is contained in:
Marty Oehme 2025-02-10 12:03:48 +01:00
parent 9df2d06a06
commit 43aefd2369
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -18,3 +18,16 @@ pager = "delta"
[ui.diff]
format = "git" # for the time being to use delta well
[templates]
draft_commit_description = '''
concat(
description,
surround(
"\nJJ: This commit contains the following changes:\n", "",
indent("JJ: ", diff.stat(72)),
),
"\nJJ: ignore-rest\n",
diff.git(),
)
'''