From ac5601f4a41333b5affb1fdc460938174ade37e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Thu, 8 May 2025 12:35:09 +0200 Subject: [PATCH] feat(jujutsu): show diff in commit message --- home.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/home.nix b/home.nix index 1ceaf7e..3b78f3c 100644 --- a/home.nix +++ b/home.nix @@ -172,6 +172,17 @@ in { 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(), + ) + ''; }; };