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:
Julian Phillips
2010-06-26 00:41:37 +01:00
committed by Junio C Hamano
parent aadceea641
commit e8c8b7139c
11 changed files with 17 additions and 17 deletions

View File

@ -501,7 +501,7 @@ static void check_aliased_update(struct command *cmd, struct string_list *list)
if (!(flag & REF_ISSYMREF))
return;
if ((item = string_list_lookup(dst_name, list)) == NULL)
if ((item = string_list_lookup(list, dst_name)) == NULL)
return;
cmd->skip_update = 1;