home: jj: use verbose draft commit messages
This commit is contained in:
parent
667e2da6e1
commit
f6d236eafc
1 changed files with 22 additions and 0 deletions
|
|
@ -40,6 +40,28 @@ in
|
||||||
lola = [ "lol" "-r" "all()" ];
|
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" = [
|
"--scope" = [
|
||||||
# Multiple identities
|
# Multiple identities
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue