Martin Ågren [off-list ref] 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.