Merge branch 'tf/string-list-init'
* tf/string-list-init: string_list: Add STRING_LIST_INIT macro and make use of it.
This commit is contained in:
@ -548,8 +548,8 @@ static void find_non_local_tags(struct transport *transport,
|
||||
struct ref **head,
|
||||
struct ref ***tail)
|
||||
{
|
||||
struct string_list existing_refs = { NULL, 0, 0, 0 };
|
||||
struct string_list remote_refs = { NULL, 0, 0, 0 };
|
||||
struct string_list existing_refs = STRING_LIST_INIT_NODUP;
|
||||
struct string_list remote_refs = STRING_LIST_INIT_NODUP;
|
||||
const struct ref *ref;
|
||||
struct string_list_item *item = NULL;
|
||||
|
||||
@ -651,7 +651,7 @@ static int truncate_fetch_head(void)
|
||||
static int do_fetch(struct transport *transport,
|
||||
struct refspec *refs, int ref_count)
|
||||
{
|
||||
struct string_list existing_refs = { NULL, 0, 0, 0 };
|
||||
struct string_list existing_refs = STRING_LIST_INIT_NODUP;
|
||||
struct string_list_item *peer_item = NULL;
|
||||
struct ref *ref_map;
|
||||
struct ref *rm;
|
||||
@ -875,7 +875,7 @@ static int fetch_one(struct remote *remote, int argc, const char **argv)
|
||||
int cmd_fetch(int argc, const char **argv, const char *prefix)
|
||||
{
|
||||
int i;
|
||||
struct string_list list = { NULL, 0, 0, 0 };
|
||||
struct string_list list = STRING_LIST_INIT_NODUP;
|
||||
struct remote *remote;
|
||||
int result = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user