]> git.ipfire.org Git - thirdparty/git.git/commit
utf8: use skip_iprefix() in same_utf_encoding()
authorRené Scharfe <l.s.r@web.de>
Fri, 8 Nov 2019 20:25:21 +0000 (21:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 10 Nov 2019 07:04:36 +0000 (16:04 +0900)
commit89f8cabaf35f8a5f7e893f190764597ad5c44ef9
tree88de4e90685eeac328b61f3bcb1c27bb9010d9a3
parentda72936f544fec5a335e66432610e4cef4430991
utf8: use skip_iprefix() in same_utf_encoding()

Get rid of magic numbers by using skip_iprefix() and skip_prefix() for
parsing the leading "[uU][tT][fF]-?" of both strings instead of checking
with istarts_with() and an explicit comparison.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
utf8.c