]> git.ipfire.org Git - thirdparty/git.git/commit
config: implement --fixed-value with --get*
authorDerrick Stolee <dstolee@microsoft.com>
Wed, 25 Nov 2020 22:12:55 +0000 (22:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Nov 2020 22:43:48 +0000 (14:43 -0800)
commit3f1bae1dc3432acf7c586cd938e524f8d30eed31
tree3da05374bd1d240570a703424c3281122b86a97c
parentc90702a1f6f7473a959994a2dff0f0dd450b8029
config: implement --fixed-value with --get*

The config builtin does its own regex matching of values for the --get,
--get-all, and --get-regexp modes. Plumb the existing 'flags' parameter
to the get_value() method so we can initialize the value-pattern argument
as a fixed string instead of a regex pattern.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c
t/t1300-config.sh