jj: Automatically show git diff for commit descriptions
This commit is contained in:
parent
9df2d06a06
commit
43aefd2369
1 changed files with 13 additions and 0 deletions
|
|
@ -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(),
|
||||
)
|
||||
'''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue