Skip to content

Commit f5fc79e

Browse files
committed
Merge branch 'jh/alias-i18n-fixes' into seen
Further update to the i18n alias support to avoid regressions. * jh/alias-i18n-fixes: SQUASH??? leakfix
2 parents 028fc0f + 7fa5521 commit f5fc79e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static int list_cmds(const char *spec)
119119
}
120120
for (size_t i = 0; i < list.nr; i++)
121121
puts(list.items[i].string);
122-
string_list_clear(&list, 0);
122+
string_list_clear(&list, 1);
123123
return 0;
124124
}
125125

help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ void list_cmds_by_config(struct string_list *list)
422422
if (repo_config_get_string_tmp(the_repository, "completion.commands", &cmd_list))
423423
return;
424424

425-
string_list_sort_u(list, 0);
425+
string_list_sort_u(list, 1);
426426

427427
while (*cmd_list) {
428428
struct strbuf sb = STRBUF_INIT;

0 commit comments

Comments
 (0)