string_list: Fix argument order for string_list_lookup
Update the definition and callers of string_list_lookup to use the string_list as the first argument. This helps make the string_list API easier to use by being more consistent. Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
aadceea641
commit
e8c8b7139c
@ -84,7 +84,7 @@ int string_list_find_insert_index(const struct string_list *list, const char *st
|
||||
return index;
|
||||
}
|
||||
|
||||
struct string_list_item *string_list_lookup(const char *string, struct string_list *list)
|
||||
struct string_list_item *string_list_lookup(struct string_list *list, const char *string)
|
||||
{
|
||||
int exact_match, i = get_entry_index(list, string, &exact_match);
|
||||
if (!exact_match)
|
||||
|
Reference in New Issue
Block a user