]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: heed core.commentChar/commentString
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Sat, 15 Mar 2025 14:09:13 +0000 (15:09 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Sun, 16 Mar 2025 12:51:55 +0000 (13:51 +0100)
commit6b43a57dfce1e5acd85f7a8365c080b6fc4f8645
treeb0098d7a7a21b771b530e65e2364a823c907d6e6
parent90934966bbac07d8d480b5257ba50945f0ec45c8
git-gui: heed core.commentChar/commentString

This amends 1ae85ff6d (git-gui: strip comments and consecutive empty
lines from commit messages, 2024-08-13) to deal with custom comment
characters/strings.

The magic commentString value "auto" is not handled, because the option
makes no sense to me - it does not support comments in templates and
hook output, and it seems far-fetched that someone would introduce
comments during editing the message.

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