Skip to content

Commit d10cb3d

Browse files
ralfthgitster
authored andcommitted
help.c: rename function "pretty_print_string_list"
The part "string_list" of the name of function "pretty_print_string_list" is just an implementation detail. The function pretty-prints command names so rename it to "pretty_print_cmdnames". Signed-off-by: Ralf Thielow <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7bbc4e8 commit d10cb3d

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)