diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-08-11 06:52:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-11 06:52:36 +0200 |
commit | b0fd38a5159f3cf5dfcb40776c863d42b695491a (patch) | |
tree | 3fd6a82c81cbc784d6ded7a028fbd3ee3a3324cf | |
parent | Merge branch 'mt/pkt-line-comment-tweak' into maint (diff) | |
parent | builtin/remote.c: use the right kind of STRING_LIST_INIT (diff) | |
download | git-b0fd38a5159f3cf5dfcb40776c863d42b695491a.tar.xz git-b0fd38a5159f3cf5dfcb40776c863d42b695491a.zip |
Merge branch 'jc/string-list-cleanup' into maint
Code clean-up.
source: <xmqq7d471dns.fsf@gitster.g>
* jc/string-list-cleanup:
builtin/remote.c: use the right kind of STRING_LIST_INIT
-rw-r--r-- | builtin/remote.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/remote.c b/builtin/remote.c index d4b69fe778..a3a0c27d7a 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -1222,10 +1222,9 @@ static int get_one_entry(struct remote *remote, void *priv) static int show_all(void) { - struct string_list list = STRING_LIST_INIT_NODUP; + struct string_list list = STRING_LIST_INIT_DUP; int result; - list.strdup_strings = 1; result = for_each_remote(get_one_entry, &list); if (!result) { |