Thread (53 messages) flat view 53 messages, 4 authors, 2016-06-15

Re: [PATCH 3/5] builtin-help: make it possible to exclude some commands in list_commands()

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:04

Miklos Vajna [off-list ref] writes:
The supposed method is to build a list of commands to be excluded using
add_cmdname(), then pass the list as the new exclude parameter. If no
exclude is needed, NULL should be used.
You require that exclude is a sorted list; this should be documented
somewhere to avoid future misuses.

There is no need for adding extra qsort() anywhere in the patchset because
the only user you are adding is in the next patch that sends a subset of
the commands in main_cmds in the order they are found in the list, and
main_cmds is already sorted.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help