Re: [PATCH] notes: attach help text to subcommands
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 8, 2012, 17:03 UTC
- Message-ID
- <7vmx4dd9d6.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1339169317-12134-1-git-send-email-artagnon@gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 5 quoted lines
> +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.