From: Junio C Hamano Date: Fri, 08 Jun 2012 17:03:17 GMT Subject: Re: [PATCH] notes: attach help text to subcommands Message-ID: <7vmx4dd9d6.fsf@alter.siamese.dyndns.org> In-Reply-To: <1339169317-12134-1-git-send-email-artagnon@gmail.com> Ramkumar Ramachandra 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.