diff options
author | Philip Kelley <phkelley@hotmail.com> | 2012-09-17 23:42:41 +0400 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2012-09-17 23:42:41 +0400 |
commit | ec40b7f99f7f7161b0a1b24f1d8a934ec0eaacb1 (patch) | |
tree | 59744c10038258c3993a4eb1b1dfc3896c35b97a /src/util.c | |
parent | e8776d30f7edb570f435cf746d712c696b862bdd (diff) |
Support for core.ignorecase
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c index 719714105..0a82ccea6 100644 --- a/src/util.c +++ b/src/util.c @@ -199,6 +199,11 @@ int git__prefixcmp(const char *str, const char *prefix) } } +int git__prefixcmp_icase(const char *str, const char *prefix) +{ + return strncasecmp(str, prefix, strlen(prefix)); +} + int git__suffixcmp(const char *str, const char *suffix) { size_t a = strlen(str); |