aboutsummaryrefslogtreecommitdiff
path: root/Documentation/technical/api-string-list.txt
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 /Documentation/technical/api-string-list.txt
parent15cb500786c3bc618dafa3c6bc9535236e7bfdcd (diff)
downloadgit-e242148012196772e3fe2652d538fb923b91ca92.tar.gz
git-e242148012196772e3fe2652d538fb923b91ca92.tar.xz
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 'Documentation/technical/api-string-list.txt')
-rw-r--r--Documentation/technical/api-string-list.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/technical/api-string-list.txt b/Documentation/technical/api-string-list.txt
index 293bb15d2..6d8c24bb1 100644
--- a/Documentation/technical/api-string-list.txt
+++ b/Documentation/technical/api-string-list.txt
@@ -104,8 +104,12 @@ write `string_list_insert(...)->util = ...;`.
`unsorted_string_list_has_string`::
It's like `string_list_has_string()` but for unsorted lists.
+
+`unsorted_string_list_lookup`::
+
+ It's like `string_list_lookup()` but for unsorted lists.
+
-This function needs to look through all items, as opposed to its
+The above two functions need to look through all items, as opposed to their
counterpart for sorted lists, which performs a binary search.
Data structures