]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: strip comments and consecutive empty lines from commit messages
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Tue, 13 Aug 2024 09:06:30 +0000 (11:06 +0200)
committerJohannes Sixt <j6t@kdbg.org>
Thu, 15 Aug 2024 14:10:23 +0000 (16:10 +0200)
commit1ae85ff6d418238b8d987c9e019bd785e3ae7192
treee5601d559a784c2ce802b9f265e8eb0d08aca64b
parent2864e855932540c3ec6c9bf41ee3fe027d85f642
git-gui: strip comments and consecutive empty lines from commit messages

This is also known as "washing". This is consistent with the behavior of
interactive git commit, which we should emulate as closely as possible
to avoid usability problems. This way commit message templates and
prepare hooks can be used properly, and comments from conflicted rebases
and merges are cleaned up without having to introduce special handling
for them.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
lib/commit.tcl