diff options
author | Julian Phillips <julian@quantumfyre.co.uk> | 2010-06-26 03:41:34 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-27 21:06:51 +0400 |
commit | b684e977363ee5cb53d83c69f2298d7898c5f89a (patch) | |
tree | b5f70daef883213e3f69643113601cc07e872083 /builtin/fetch.c | |
parent | cb944f6b5009e4788041a5194d73b92a0620c9d9 (diff) |
string_list: Fix argument order for for_each_string_list
Update the definition and callers of for_each_string_list 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 'builtin/fetch.c')
-rw-r--r-- | builtin/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index 8470850415..b040e5a31d 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -633,7 +633,7 @@ static void find_non_local_tags(struct transport *transport, * For all the tags in the remote_refs string list, call * add_to_tail to add them to the list of refs to be fetched */ - for_each_string_list(add_to_tail, &remote_refs, &data); + for_each_string_list(&remote_refs, add_to_tail, &data); string_list_clear(&remote_refs, 0); } |