Commit 4df6ddaa1ac35e4f76eb2362723183b9efc96729

Edward Thomson 2016-03-31T15:05:34

iterator: use correct search function

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/iterator.c b/src/iterator.c
index 4202e00..3cefe91 100644
--- a/src/iterator.c
+++ b/src/iterator.c
@@ -34,7 +34,7 @@ static void iterator_set_ignore_case(git_iterator *iter, bool ignore_case)
 	iter->strcomp = ignore_case ? git__strcasecmp : git__strcmp;
 	iter->strncomp = ignore_case ? git__strncasecmp : git__strncmp;
 	iter->prefixcomp = ignore_case ? git__prefixcmp_icase : git__prefixcmp;
-	iter->entry_srch = ignore_case ? git_index_entry_srch : git_index_entry_isrch;
+	iter->entry_srch = ignore_case ? git_index_entry_isrch : git_index_entry_srch;
 
 	git_vector_set_cmp(&iter->pathlist, (git_vector_cmp)iter->strcomp);
 }