From 9c6fa67b86937ba6c41753392a8b03d54202df84 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Tue, 14 Feb 2023 14:16:00 +0900 Subject: [PATCH] config: apply configured id style to commit_summary template Thanks to 81af5f820b9c "repo: calculate shortest unique prefix separately for commit/change", commit_id.shortest() now works even if the repo is MutableRepo. --- src/config/templates.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/templates.toml b/src/config/templates.toml index d1f46b9bd..87f8e8065 100644 --- a/src/config/templates.toml +++ b/src/config/templates.toml @@ -1,7 +1,7 @@ # TODO: rename section to [templates]? [template] commit_summary = ''' -commit_id.short() " " +format_short_id(commit_id) " " if(description, description.first_line(), description_placeholder) '''