feat(jujutsu): show diff in commit message
This commit is contained in:
parent
7f2ad0388a
commit
ac5601f4a4
1 changed files with 11 additions and 0 deletions
11
home.nix
11
home.nix
|
|
@ -172,6 +172,17 @@ in {
|
||||||
patterns = ["glob:'**/*'"];
|
patterns = ["glob:'**/*'"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
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