From: Junio C Hamano Date: Thu, 14 Nov 2019 02:18:53 GMT Subject: Re: [PATCH 0/8] builtin/config: canonicalize "value_regex" with `--type=bool[-or-int]` Message-ID: In-Reply-To: Martin Ă…gren writes: > git config --type=bool --name-only --get-regexp '^foo\.' true > ... > This patch series teaches `git config` to canonicalize the incoming > "value_regex" ("true" in the example above), then canonicalize candidate > values as we go through the config. Or if you will, `git config` learns > a brand new type of regex, corresponding to the different ways there are > of spelling "true" and "false", respectively. Nice ;-) > `--type=bool-or-int` gets the same treatment, except we need to to be > able to handle the ints and regexes matching particular ints that we > must expect. Hmm, so I can say 1024k or 1m and that would match 1048576? Doubly nice. Looking forward to reading it thru.