summaryrefslogtreecommitdiff
path: root/reflog-walk.c
diff options
context:
space:
mode:
authorJulian Phillips <julian@quantumfyre.co.uk>2010-06-25 23:41:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-06-27 17:06:51 (GMT)
commite8c8b7139c87c3e3017d3bff07f91c4349850d58 (patch)
treeb9de12fa2da7003bf851889938d22c99ad0d1c6b /reflog-walk.c
parentaadceea641806b363ca555ffdc04109ea716c497 (diff)
downloadgit-e8c8b7139c87c3e3017d3bff07f91c4349850d58.zip
git-e8c8b7139c87c3e3017d3bff07f91c4349850d58.tar.gz
git-e8c8b7139c87c3e3017d3bff07f91c4349850d58.tar.bz2
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 'reflog-walk.c')
-rw-r--r--reflog-walk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reflog-walk.c b/reflog-walk.c
index f125f37..4879615 100644
--- a/reflog-walk.c
+++ b/reflog-walk.c
@@ -162,7 +162,7 @@ int add_reflog_for_walk(struct reflog_walk_info *info,
} else
recno = 0;
- item = string_list_lookup(branch, &info->complete_reflogs);
+ item = string_list_lookup(&info->complete_reflogs, branch);
if (item)
reflogs = item->util;
else {