Re: [PATCH v9 2/2] builtin/config.c: support `--type=` as preferred alias for `--type`

2018-04-18 Thread Taylor Blau
On Thu, Apr 19, 2018 at 11:47:50AM +0900, Junio C Hamano wrote: > Taylor Blau writes: > > > diff --git a/builtin/config.c b/builtin/config.c > > index 92fb8d56b1..bd7a8d0ce7 100644 > > --- a/builtin/config.c > > +++ b/builtin/config.c > > @@ -61,6 +61,58 @@ static int show_origin; > > #define TYP

Re: [PATCH v9 2/2] builtin/config.c: support `--type=` as preferred alias for `--type`

2018-04-18 Thread Junio C Hamano
Taylor Blau writes: > diff --git a/builtin/config.c b/builtin/config.c > index 92fb8d56b1..bd7a8d0ce7 100644 > --- a/builtin/config.c > +++ b/builtin/config.c > @@ -61,6 +61,58 @@ static int show_origin; > #define TYPE_PATH4 > #define TYPE_EXPIRY_DATE 5 > > +#define OPT_CALLBA

[PATCH v9 2/2] builtin/config.c: support `--type=` as preferred alias for `--type`

2018-04-18 Thread Taylor Blau
`git config` has long allowed the ability for callers to provide a 'type specifier', which instructs `git config` to (1) ensure that incoming values can be interpreted as that type, and (2) that outgoing values are canonicalized under that type. In another series, we propose to extend this functio