aboutsummaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-03-14 14:27:00 -0700
committerJunio C Hamano <gitster@pobox.com>2014-03-14 14:27:00 -0700
commitc89eb9870e474b0717d6e11f0ddb8b73cef520af (patch)
treeee15d1cd2b3fe522eff3dfce3313c8d019f61882 /help.c
parentd73e6160031e1753c81cf0d72b0f9525cf93dca0 (diff)
parentd10cb3dfab92bf24e2919ae3d4a16013dba0261f (diff)
downloadgit-c89eb9870e474b0717d6e11f0ddb8b73cef520af.tar.gz
git-c89eb9870e474b0717d6e11f0ddb8b73cef520af.tar.xz
Merge branch 'rt/help-pretty-prints-cmd-names'
* rt/help-pretty-prints-cmd-names: help.c: rename function "pretty_print_string_list"
Diffstat (limited to 'help.c')
-rw-r--r--help.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/help.c b/help.c
index df7d16d7c..b266b0932 100644
--- a/help.c
+++ b/help.c
@@ -78,8 +78,7 @@ void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes)
cmds->cnt = cj;
}
-static void pretty_print_string_list(struct cmdnames *cmds,
- unsigned int colopts)
+static void pretty_print_cmdnames(struct cmdnames *cmds, unsigned int colopts)
{
struct string_list list = STRING_LIST_INIT_NODUP;
struct column_options copts;
@@ -209,14 +208,14 @@ void list_commands(unsigned int colopts,
const char *exec_path = git_exec_path();
printf_ln(_("available git commands in '%s'"), exec_path);
putchar('\n');
- pretty_print_string_list(main_cmds, colopts);
+ pretty_print_cmdnames(main_cmds, colopts);
putchar('\n');
}
if (other_cmds->cnt) {
printf_ln(_("git commands available from elsewhere on your $PATH"));
putchar('\n');
- pretty_print_string_list(other_cmds, colopts);
+ pretty_print_cmdnames(other_cmds, colopts);
putchar('\n');
}
}