diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-08-03 22:36:09 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-03 22:36:09 +0200 |
commit | 30c6495e1ed09368ed0e3cca2758d3c886bd8c6b (patch) | |
tree | fbe65b9383ccbd2f71f1ed86febbf753e898eb50 /builtin/remote.c | |
parent | Merge branch 'en/merge-restore-to-pristine' (diff) | |
parent | builtin/remote.c: use the right kind of STRING_LIST_INIT (diff) | |
download | git-30c6495e1ed09368ed0e3cca2758d3c886bd8c6b.tar.xz git-30c6495e1ed09368ed0e3cca2758d3c886bd8c6b.zip |
Merge branch 'jc/string-list-cleanup'
Code clean-up.
* jc/string-list-cleanup:
builtin/remote.c: use the right kind of STRING_LIST_INIT
Diffstat (limited to 'builtin/remote.c')
-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 d9b8746cb3..c713463d89 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -1229,10 +1229,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) { |