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
@ -695,8 +695,8 @@ static int do_fetch(struct transport *transport,
|
||||
|
||||
for (rm = ref_map; rm; rm = rm->next) {
|
||||
if (rm->peer_ref) {
|
||||
peer_item = string_list_lookup(rm->peer_ref->name,
|
||||
&existing_refs);
|
||||
peer_item = string_list_lookup(&existing_refs,
|
||||
rm->peer_ref->name);
|
||||
if (peer_item)
|
||||
hashcpy(rm->peer_ref->old_sha1,
|
||||
peer_item->util);
|
||||
|
||||
Reference in New Issue
Block a user