help: reuse print_columns() for help -a
"help -a" also respects column.ui (and column.help if presents) Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
3f8eccbe16
commit
dbfae68969
2
help.h
2
help.h
@ -25,7 +25,7 @@ extern void add_cmdname(struct cmdnames *cmds, const char *name, int len);
|
||||
/* Here we require that excludes is a sorted list. */
|
||||
extern void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes);
|
||||
extern int is_in_cmdlist(struct cmdnames *cmds, const char *name);
|
||||
extern void list_commands(const char *title,
|
||||
extern void list_commands(const char *title, unsigned int colopts,
|
||||
struct cmdnames *main_cmds,
|
||||
struct cmdnames *other_cmds);
|
||||
|
||||
|
Reference in New Issue
Block a user