1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 10:07:44 +00:00

feat: show diff in jj commit

This commit is contained in:
RGBCube 2025-04-27 01:36:00 +03:00
parent a22551e0f4
commit ea674968fd
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -35,6 +35,18 @@ in {
ui.conflict-marker-style = "snapshot";
ui.graph.style = if config.theme.cornerRadius > 0 then "curved" else "square";
templates.draft_commit_description = /* python */ ''
concat(
coalesce(description, "\n"),
surround(
"\nJJ: This commit contains the following changes:\n", "",
indent("JJ: ", diff.stat(72)),
),
"\nJJ: ignore-rest\n",
diff.git(),
)
'';
git.auto-local-bookmark = true;
git.push-bookmark-prefix = "change-";
git.subprocess = true;