Re: [PATCH v2 2/2] builtin/config.c: prefer `--type=bool` over `--bool`, etc.
- From
René Scharfe <l.s.r@web.de>
- Date
- Mar 30, 2018, 06:17 UTC
- Message-ID
- <9e25f8fa-6518-5c15-f249-c874dbe1761c@web.de>
- In-Reply-To
- <20180330052830.57251-2-me@ttaylorr.com>
Am 30.03.2018 um 07:28 schrieb Taylor Blau:
Show 19 quoted lines
> diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt > index e09ed5d7d..9956b03f7 100644 > --- a/Documentation/git-config.txt > +++ b/Documentation/git-config.txt > @@ -160,30 +158,34 @@ See also <<FILES>>. > --list:: > List all variables set in config file, along with their values. > > ---bool:: > - 'git config' will ensure that the output is "true" or "false" > +--type [type]:: > + 'git config' will ensure that any input output is valid under the given type > + constraint(s), and will canonicalize outgoing values in `[type]`'s canonical > + form. > ++ > +Valid `[type]`'s include: > ++ > +- 'bool': canonicalize values as either "true" or "false". > +- 'int': canonicalize values as simple decimla numbers. An optional suffix of
s/ize val/ize val/ s/decimla/decimal/
René