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

Re: [RFC] notes: attach help text to subcommands

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:54:01

Possibly related (same subject, not in this thread)

Ramkumar Ramachandra [off-list ref] writes:

+	string_list_insert(&subcmds, "list")->util = &util[0];
+	string_list_insert(&subcmds, "add")->util = &util[1];
...
If you make "struct subcommand" to contain entry's own name, you
could simply do this, no?

	for (i = 0; i < ARRAY_SIZE(util); i++)
        	string_list_insert(&subcmds, util[i].name)->util = &util[i];

Perhaps append all and then sort once at the end?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help