home: jj: use verbose draft commit messages
This commit is contained in:
parent
0ba3d37813
commit
21a5705631
1 changed files with 22 additions and 0 deletions
|
|
@ -40,6 +40,28 @@ in
|
|||
lola = [ "lol" "-r" "all()" ];
|
||||
};
|
||||
|
||||
templates = {
|
||||
# Equivalent to `commit.verbose = true` in Git
|
||||
draft_commit_description = "commit_description_verbose(self)";
|
||||
};
|
||||
|
||||
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" = [
|
||||
# Multiple identities
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue