зеркало из https://github.com/microsoft/git.git
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
This commit is contained in:
Коммит
b0fd38a515
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче