diff options
author | Julian Phillips <julian@quantumfyre.co.uk> | 2010-06-26 01:41:38 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-27 19:06:52 +0200 |
commit | 1d2f80fa79cdc6f7f4fa1cefb47d7d19be3bc5ee (patch) | |
tree | ddad96762347505bb9b455b2e891f74b0b320f99 /transport-helper.c | |
parent | string_list: Fix argument order for string_list_lookup (diff) | |
download | git-1d2f80fa79cdc6f7f4fa1cefb47d7d19be3bc5ee.tar.xz git-1d2f80fa79cdc6f7f4fa1cefb47d7d19be3bc5ee.zip |
string_list: Fix argument order for string_list_append
Update the definition and callers of string_list_append 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 'transport-helper.c')
-rw-r--r-- | transport-helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/transport-helper.c b/transport-helper.c index 0381de5368..191fbf798a 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -727,10 +727,10 @@ static int push_refs_with_export(struct transport *transport, private = apply_refspecs(data->refspecs, data->refspec_nr, ref->name); if (private && !get_sha1(private, sha1)) { strbuf_addf(&buf, "^%s", private); - string_list_append(strbuf_detach(&buf, NULL), &revlist_args); + string_list_append(&revlist_args, strbuf_detach(&buf, NULL)); } - string_list_append(ref->name, &revlist_args); + string_list_append(&revlist_args, ref->name); } |