]> Kevux Git Server - rit/commit
format-patch: --commit-list-format without prefix
authorMirko Faina <mroik@delayed.space>
Mon, 23 Mar 2026 16:57:35 +0000 (17:57 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2026 20:06:59 +0000 (13:06 -0700)
commit36c16a5b7fff7806b475b5fa07eca3a5179d7fa6
tree098ab742e268c4bf60b2a572f247b65667cdecff
parentd022dc77ab81fcc005b9965e91f524d4a43e74b5
format-patch: --commit-list-format without prefix

Having to prefix a custom format-string with "log:" when passed from the
CLI can be annoying. It would be great if this prefix wasn't required.

Teach make_cover_letter() to accept custom format-strings without the
"log:" prefix if a placeholder is detected.

Note that both here and in "git log --format" the check is done naively
by just checking for the presence of a '%'.

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