]> git.ipfire.org Git - thirdparty/git.git/commit
promisor-remote: refactor has_control_char()
authorChristian Couder <christian.couder@gmail.com>
Tue, 7 Apr 2026 11:52:39 +0000 (13:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Apr 2026 15:45:44 +0000 (08:45 -0700)
commit16a4372a3df7579429b7bc23e984bd797a4b7b8d
treef10aba5f07191b460c7fa334b10126fe2921053e
parent64f0f6b88aea33546afd1271862b486fafe7e9cc
promisor-remote: refactor has_control_char()

In a future commit we are going to check if some strings contain
control characters, so let's refactor the logic to do that in a new
has_control_char() helper function.

It cleans up the code a bit anyway.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
promisor-remote.c