From: Jakub Narebski Date: Tue, 13 Nov 2007 09:46:38 GMT Subject: Re: Subject: [PATCH 2/3] Let git-add--interactive read colors from .gitconfig Message-ID: In-Reply-To: <47395F63.8040306@zwell.net> Dan Zwell wrote: > Junio C Hamano wrote: >> But the point is, that you are not ignoring invalid color names >> but instead giving back a random match aren't you? > > No, if there's no match, the token is ignored. False matches are > possible in some cases (the bogus config option "colored" would match > "red", for example), Match /\b(?:red|...)\b/ then -- Jakub Narebski Warsaw, Poland ShadeHawk on #git