]> Kevux Git Server - rit/commit
commit: name UTF-8 function appropriately
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 27 Apr 2026 22:18:33 +0000 (22:18 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Apr 2026 00:51:11 +0000 (09:51 +0900)
commit1ddc0481cfb744d51e235a8cccf97d4afb498743
tree6f21aba7be8a9db013aa2604b8aada819dc55317
parent94f057755b7941b321fd11fec1b2e3ca5313a4e0
commit: name UTF-8 function appropriately

We have a function named verify_utf8, but it does more than verify, it
modifies the buffer if it is not UTF-8.  This is different from what
most people would expect, so call the function ensure_utf8, since it
mutates the buffer in some cases.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c