]> git.ipfire.org Git - thirdparty/git.git/commit - strbuf.c
strbuf: add a case insensitive starts_with()
authorLars Schneider <larsxschneider@gmail.com>
Fri, 9 Mar 2018 17:35:29 +0000 (18:35 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Mar 2018 18:17:23 +0000 (10:17 -0800)
commit66b8af3e124a0c9dbad05f40c2f6d27614f34349
tree177c2fdb410f395172a8c2365f93b67febcb3d83
parent13ecb4638ed92a56e855d2e6d3a9b71c4125eb51
strbuf: add a case insensitive starts_with()

Check in a case insensitive manner if one string is a prefix of another
string.

This function is used in a subsequent commit.

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h
strbuf.c