diff options
author | René Scharfe <l.s.r@web.de> | 2019-11-08 21:27:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-11-10 16:04:48 +0900 |
commit | ed283588330968dfefba37032980dfe2a8df63e4 (patch) | |
tree | 1049339cb95a04d23bf986ae7b987f7c7d8765c3 /git-gui | |
parent | utf8: use skip_iprefix() in same_utf_encoding() (diff) | |
download | tgif-ed283588330968dfefba37032980dfe2a8df63e4.tar.xz |
convert: use skip_iprefix() in validate_encoding()
Use skip_iprefix() to parse "UTF" case-insensitively instead of checking
with istarts_with(), building an upper-case version and then using
skip_prefix() on it. This gets rid of duplicate code and of a small
allocation.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui')
0 files changed, 0 insertions, 0 deletions