aboutsummaryrefslogtreecommitdiff
path: root/pack-objects.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2019-11-08 21:27:34 +0100
committerJunio C Hamano <gitster@pobox.com>2019-11-10 16:04:48 +0900
commited283588330968dfefba37032980dfe2a8df63e4 (patch)
tree1049339cb95a04d23bf986ae7b987f7c7d8765c3 /pack-objects.c
parent89f8cabaf35f8a5f7e893f190764597ad5c44ef9 (diff)
downloadgit-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 'pack-objects.c')
0 files changed, 0 insertions, 0 deletions