Skip to content

Commit

Permalink
Merge branch 'rt/help-pretty-prints-cmd-names'
Browse files Browse the repository at this point in the history
* rt/help-pretty-prints-cmd-names:
  help.c: rename function "pretty_print_string_list"
  • Loading branch information
gitster committed Mar 14, 2014
2 parents d73e616 + d10cb3d commit c89eb98
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions help.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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');
}
}
Expand Down

0 comments on commit c89eb98

Please sign in to comment.