]> git.ipfire.org Git - thirdparty/git.git/commit
sideband: add options to allow more control sequences to be passed through
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 16 Jan 2026 22:26:12 +0000 (22:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Jan 2026 23:43:03 +0000 (15:43 -0800)
commitdf9d873f3ef01839e9b05e09c1cc910c7374887f
tree7b38bc26f92eeafed98b795a7322c3cfd5533284
parent63cbc995dbff6af870dfdb9f8088d715286adaf6
sideband: add options to allow more control sequences to be passed through

Even though control sequences that erase characters are quite juicy for
attack scenarios, where attackers are eager to hide traces of suspicious
activities, during the review of the side band sanitizing patch series
concerns were raised that there might be some legimitate scenarios where
Git server's `pre-receive` hooks use those sequences in a benign way.

Control sequences to move the cursor can likewise be used to hide tracks
by overwriting characters, and have been equally pointed out as having
legitimate users.

Let's add options to let users opt into passing through those ANSI
Escape sequences: `sideband.allowControlCharacters` now supports also
`cursor` and `erase`, and it parses the value as a comma-separated list.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/sideband.txt
sideband.c
t/t5409-colorize-remote-messages.sh