]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: do not mix -translation binary and -encoding
authorMark Levedahl <mlevedahl@gmail.com>
Wed, 21 May 2025 23:18:46 +0000 (19:18 -0400)
committerMark Levedahl <mlevedahl@gmail.com>
Tue, 22 Jul 2025 16:32:58 +0000 (12:32 -0400)
commit07714e220b7ee137f4645ec950383eaaeddf23d5
tree445c2e54a8854e262ab73bd0022ab1dc5781195a
parent40f54f670a01b6ae4f13e0888796948ddce9104c
git-gui: do not mix -translation binary and -encoding

git-gui has many instances of '-translation binary' and '-encoding
$SOMETHING' on the same channel.  As eofchar is always null given a
prior commit, the net effect of having '-translation binary' in such
configuration is only to change how text line endings are handled.

For cases where the channel is opened to be consumed via gets, the eol
translation is irrelevant because Tcl's gets is documented to recognize
any of \n, \r, and \r\n as a line ending.  So, keep only the '-encoding
$SOMETHING' configuration in these cases, making the configuration more
clear.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
git-gui.sh
lib/branch.tcl
lib/browser.tcl
lib/choose_rev.tcl