home: jj: use verbose draft commit messages

This commit is contained in:
Bruno BELANYI 2025-03-17 12:43:12 +00:00
parent 537d80e943
commit aa76e6c7d0

View file

@ -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
{ {