home: jj: add better commit draft templates
This commit is contained in:
parent
f083325b4a
commit
95c5fe1b49
|
@ -54,7 +54,23 @@ coalesce(
|
||||||
)
|
)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
draft_commit_description = "commit_description_verbose(self)"
|
||||||
|
|
||||||
[template-aliases]
|
[template-aliases]
|
||||||
|
"commit_description_verbose(commit)" = '''
|
||||||
|
concat(
|
||||||
|
commit_description(commit),
|
||||||
|
"JJ: ignore-rest\n",
|
||||||
|
diff.git(),
|
||||||
|
)
|
||||||
|
'''
|
||||||
|
"commit_description(commit)" = '''
|
||||||
|
concat(
|
||||||
|
commit.description(), "\n",
|
||||||
|
"JJ: This commit contains the following changes:\n",
|
||||||
|
indent("JJ: ", diff.stat(72)),
|
||||||
|
)
|
||||||
|
'''
|
||||||
|
|
||||||
[[--scope]]
|
[[--scope]]
|
||||||
--when.repositories = ["~/work/lrde/"]
|
--when.repositories = ["~/work/lrde/"]
|
||||||
|
|
Loading…
Reference in a new issue