Skip to content

Commit c89eb98

Browse files
committed
Merge branch 'rt/help-pretty-prints-cmd-names'
* rt/help-pretty-prints-cmd-names: help.c: rename function "pretty_print_string_list"
2 parents d73e616 + d10cb3d commit c89eb98

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

help.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes)
7878
cmds->cnt = cj;
7979
}
8080

81-
static void pretty_print_string_list(struct cmdnames *cmds,
82-
unsigned int colopts)
81+
static void pretty_print_cmdnames(struct cmdnames *cmds, unsigned int colopts)
8382
{
8483
struct string_list list = STRING_LIST_INIT_NODUP;
8584
struct column_options copts;
@@ -209,14 +208,14 @@ void list_commands(unsigned int colopts,
209208
const char *exec_path = git_exec_path();
210209
printf_ln(_("available git commands in '%s'"), exec_path);
211210
putchar('\n');
212-
pretty_print_string_list(main_cmds, colopts);
211+
pretty_print_cmdnames(main_cmds, colopts);
213212
putchar('\n');
214213
}
215214

216215
if (other_cmds->cnt) {
217216
printf_ln(_("git commands available from elsewhere on your $PATH"));
218217
putchar('\n');
219-
pretty_print_string_list(other_cmds, colopts);
218+
pretty_print_cmdnames(other_cmds, colopts);
220219
putchar('\n');
221220
}
222221
}

0 commit comments

Comments
 (0)