Re: [PATCH] config: Use parseopt.
- From
Jeff King <peff@peff.net>
- Date
- Feb 14, 2009, 15:17 UTC
- Message-ID
- <20090214151725.GB3887@sigill.intra.peff.net>
- In-Reply-To
- <m3skmhteuk.fsf@localhost.localdomain>
On Sat, Feb 14, 2009 at 03:52:56AM -0800, Jakub Narebski wrote:
Show 8 quoted lines
> > -static const char git_config_set_usage[] =
> > -"git config [ --global | --system | [ -f | --file ] config-file ] [ --bool | --int | --bool-or-int ] [ -z | --null ] [--get | --get-all | --get-regexp | --replace-all | --add | --unset | --unset-all] name [value [value_regex]] | --rename-section old_name new_name | --remove-section name | --list | --get-color var [default] | --get-colorbool name [stdout-is-tty] | --edit | -e ]";
> > +static const char *const builtin_config_usage[] = {
> > + "git config [options]",
> > + NULL
> > +};
>
> Just asking: why this change?If you are asking about this specific hunk, it is because parse-options will generate the list of options.
-Peff