git-config-set: support selecting values by non-matching regex
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Sun, 20 Nov 2005 12:24:18 +0000 (13:24 +0100)
committerJunio C Hamano <junkio@cox.net>
Sun, 20 Nov 2005 18:53:06 +0000 (10:53 -0800)
commitf98d863d2122e1b8781dfb9889df98876a26f315
tree3b688c9ff010bd74cde0027fe63f1d225a53b0ab
parenta6322d079b1d2e2cb72da1271171b35a173f3d22
git-config-set: support selecting values by non-matching regex

Extend the regex syntax of value_regex so that prepending an exclamation
mark means non-match:

[core]
quetzal = "Dodo" for Brainf*ck
quetzal = "T. Rex" for Malbolge
quetzal = "cat"

You can match the third line with

git-config-set --get quetzal '! for '

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-config-set.txt
config-set.c
config.c
t/t1300-config-set.sh