]> Kevux Git Server - rit/commit
format-patch: add preset for --commit-list-format
authorMirko Faina <mroik@delayed.space>
Mon, 23 Mar 2026 16:57:34 +0000 (17:57 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2026 20:06:59 +0000 (13:06 -0700)
commitd022dc77ab81fcc005b9965e91f524d4a43e74b5
tree1b0676132010c62780cc77ea71a5fe2dab7c1359
parent617db87921e835f02ac132e86d0f7edc0d72915e
format-patch: add preset for --commit-list-format

"git format-patch --commit-list-format" enables the user to make their
own format for the commit list in the cover letter. It would be nice to
have a ready to use format to replace shortlog.

Teach make_cover_letter() the "modern" format preset.
This new format is the same as: "log:[%(count)/%(total)] %s".

Signed-off-by: Mirko Faina <mroik@delayed.space>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/format.adoc
Documentation/git-format-patch.adoc
builtin/log.c
t/t4014-format-patch.sh