summaryrefslogtreecommitdiff
path: root/string-list.h
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2010-03-24 00:16:02 -0700
committerJunio C Hamano <gitster@pobox.com>2010-03-24 19:41:19 -0700
commite242148012196772e3fe2652d538fb923b91ca92 (patch)
tree076db390dad5ad0e11c705debb811df32a82683c /string-list.h
parent15cb500786c3bc618dafa3c6bc9535236e7bfdcd (diff)
downloadgit-e242148012196772e3fe2652d538fb923b91ca92.tar.gz
string-list: add unsorted_string_list_lookup()
Sometimes users need to lookup a string in an unsorted string_list. In that case they should use this function instead of the version for sorted strings. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'string-list.h')
-rw-r--r--string-list.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/string-list.h b/string-list.h
index 6569cf607b..63b69c8d75 100644
--- a/string-list.h
+++ b/string-list.h
@@ -38,5 +38,6 @@ struct string_list_item *string_list_lookup(const char *string, struct string_li
struct string_list_item *string_list_append(const char *string, struct string_list *list);
void sort_string_list(struct string_list *list);
int unsorted_string_list_has_string(struct string_list *list, const char *string);
-
+struct string_list_item *unsorted_string_list_lookup(struct string_list *list,
+ const char *string);
#endif /* STRING_LIST_H */