Thread (1 message) 1 message, 1 author, 2016-06-15

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

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

Ramkumar Ramachandra [off-list ref] writes:
+struct subcommand {
+	const char *name;
+	const char *help;
+	int (*callback)(int, const char **, const char *);
+};
In what way is this a "callback"?  It is not like you call some API
function with this structure as its argument, and then the
implementation of the API function calls this function back.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help