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 <ralf.thielow@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ralf Thielow committed
Feb 28, 2014 at 20:27 UTC
d10cb3dfab92bf24e2919ae3d4a16013dba0261f
1 file changed
+3
-4
help.c
+3
-4
@@ -78,8 +78,7 @@ void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes)
78
cmds->cnt = cj;
79
}
80
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)
82
{
83
struct string_list list = STRING_LIST_INIT_NODUP;
84
struct column_options copts;
@@ -209,14 +208,14 @@ void list_commands(unsigned int colopts,
208
const char *exec_path = git_exec_path();
209
printf_ln(_("available git commands in '%s'"), exec_path);
210
putchar('\n');
212
- pretty_print_string_list(main_cmds, colopts);
211
+ pretty_print_cmdnames(main_cmds, colopts);
212
putchar('\n');
213
}
214
215
if (other_cmds->cnt) {
216
printf_ln(_("git commands available from elsewhere on your $PATH"));
217
putchar('\n');
219
- pretty_print_string_list(other_cmds, colopts);
218
+ pretty_print_cmdnames(other_cmds, colopts);
219
putchar('\n');
220
}
221
}