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:
parent
a22551e0f4
commit
ea674968fd
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue