On Wed, Dec 15, 2010 at 9:56 AM, Junio C Hamano <gitster@xxxxxxxxx> wrote: > Nguyen Thai Ngoc Duy <pclouds@xxxxxxxxx> writes: > >> Perhaps we should just reject this case. No sane body would ever use it. > > I'd have to say that dismissing before even trying is not a very > disciplined attitude. > > Shouldn't an empty regexp simply match everything? ÂEven on FBSD8, > > Â Â$ grep '' /etc/passwd > > seems to show everything. ÂHow hard would it be to do this in the codepath > we are discussing? To make '' match everything is easy. I'll cook up something when I get home. -- Duy -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html