From: Matthias Lederhofer Date: Fri, 30 Jun 2006 10:57:32 GMT Subject: Re: [PATCH] git-grep: --and to combine patterns with and instead of or Message-ID: In-Reply-To: <7v3bdnkrfb.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > I see you are trying hard to think of a way to justify your > original prefix "--and" (or --FOO) implementation, but I simply > do not see much point in that. I doubt changing the default > operator from --or to --and is less confusing than changing the > precedence for the users, so you would hear the same "I > personally feel FOO should not even exist" objection from me. It just happens to make more sense to me and I don't see a reason not to add this. If no one else is interested in this I'll just stop arguing :) Here again an overview of the arguments if anyone is interested: - Less to type for common searches using only AND (or more ANDs than ORs). - Easy to implement (both with and without extended expressions). - AND/* is the normal implicit operator in other contexts than grep (math). - The high precedence operator (AND) should be implicit rather than the low precedence one (OR) (so this is only fulfilled when the option is used).