From 20647c820fc808690fbf86b738899b61f66b0ae6 Mon Sep 17 00:00:00 2001 From: Antoine Martin <antoine@alarsyo.net> Date: Sat, 15 Mar 2025 16:14:40 +0100 Subject: [PATCH] home: jj: dryer changelog template --- home/jj/config.toml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/home/jj/config.toml b/home/jj/config.toml index 61df550..653bb25 100644 --- a/home/jj/config.toml +++ b/home/jj/config.toml @@ -64,20 +64,20 @@ concat( diff.git(), ) ''' -"commit_description_verbose_changelog(commit)" = ''' +"changelog_entry(file)" = ''' concat( - commit_description_changelog(commit), - "JJ: ignore-rest\n", - diff.git(), + "* ", + f.path(), + ":\n", ) ''' "commit_description_changelog(commit)" = ''' concat( commit.description(), "\n", - surround("", "\n", diff.files().map(|f| if(!commit.description().contains(f.path()), - "* " ++ f.path() ++ ":\n" - ) - ).join("")), + surround("", "\n", diff.files().map(|f| if(!commit.description().contains(changelog_entry(f)), + changelog_entry(f) + ) + ).join("")), "JJ: This commit contains the following changes:\n", indent("JJ: ", diff.stat(72)), )