[jj] simplify draft_commit_description template
change wlsswrolnunqutqtmqtzzqrrnutmtnkr
commit 23f638933779bef30f1b771dff8ebb7a37dee5b9
author Alpha Chen <alpha@kejadlen.dev>
date
parent vupzvmzw
diff --git a/.config/jj/config.toml b/.config/jj/config.toml
index 4a6b564f..555f3cc0 100644
--- a/.config/jj/config.toml
+++ b/.config/jj/config.toml
@@ -45,15 +45,12 @@ push-new-bookmarks = true
 private-commits = "description(glob:'private:*')"
 
 [templates]
-# https://jj-vcs.github.io/jj/latest/config/#default-description
+# show diff when committing
 draft_commit_description = '''
-concat(
-  coalesce(description, default_commit_description, "\n"),
-  surround(
-    "\nJJ: This commit contains the following changes:\n", "",
-    indent("JJ:     ", diff.stat(72)),
-  ),
-  "\nJJ: ignore-rest\n",
+separate(
+  "\n",
+  builtin_draft_commit_description,
+  "JJ: ignore-rest",
   diff.git(),
 )
 '''