diff options
author | Julian Phillips <julian@quantumfyre.co.uk> | 2010-06-26 00:41:37 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-27 10:06:51 -0700 |
commit | e8c8b7139c87c3e3017d3bff07f91c4349850d58 (patch) | |
tree | b9de12fa2da7003bf851889938d22c99ad0d1c6b /remote.c | |
parent | aadceea641806b363ca555ffdc04109ea716c497 (diff) | |
download | git-e8c8b7139c87c3e3017d3bff07f91c4349850d58.tar.gz |
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>
Diffstat (limited to 'remote.c')
-rw-r--r-- | remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -763,7 +763,7 @@ void ref_remove_duplicates(struct ref *ref_map) if (!ref_map->peer_ref) continue; - item = string_list_lookup(ref_map->peer_ref->name, &refs); + item = string_list_lookup(&refs, ref_map->peer_ref->name); if (item) { if (strcmp(((struct ref *)item->util)->name, ref_map->name)) |