]> git.99rst.org Git - git.git/commit
format-patch: removing unconditional wrapping
authorMirko Faina <redacted>
Fri, 27 Mar 2026 19:48:10 +0000 (20:48 +0100)
committerJunio C Hamano <redacted>
Fri, 27 Mar 2026 20:10:12 +0000 (13:10 -0700)
commit0284046ad01e22b5e794a864a96925791f75353c
treed2ea26c6cec91a63bbd39f0db6379aa05e61f8b4
parentacee42d3e5a2855cfa3b33baf3728f34fe6fb33f
format-patch: removing unconditional wrapping

Using format-patch with --commit-list-format different than shortlog,
causes the commit entry lines to wrap if they get longer than
MAIL_DEFAULT_WRAP (72 characters).

While this might be sensible for many when sending changes through
email, it forces this decision of wrapping on the user, reducing the
control granularity of --commit-list-format.

Teach generate_commit_list_cover() to respect commit entry line lengths
and place this wrapping rule on the "modern" preset format instead.

Signed-off-by: Mirko Faina <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-format-patch.adoc
builtin/log.c
git clone https://git.99rst.org/PROJECT