From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH] git-grep: --and to combine patterns with and instead of or Date: Fri, 30 Jun 2006 10:58:00 -0700 Message-ID: <7vfyhmil07.fsf@assigned-by-dhcp.cox.net> References: <7vejx7oa3x.fsf@assigned-by-dhcp.cox.net> <7v7j2zmgbu.fsf@assigned-by-dhcp.cox.net> <7v3bdnkrfb.fsf@assigned-by-dhcp.cox.net> <7vejx6k54p.fsf@assigned-by-dhcp.cox.net> <7vpsgqimu7.fsf@assigned-by-dhcp.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org, Jakub Narebski X-From: git-owner@vger.kernel.org Fri Jun 30 19:58:16 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FwNFn-0007Rq-RW for gcvg-git@gmane.org; Fri, 30 Jun 2006 19:58:08 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751333AbWF3R6E (ORCPT ); Fri, 30 Jun 2006 13:58:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751818AbWF3R6E (ORCPT ); Fri, 30 Jun 2006 13:58:04 -0400 Received: from fed1rmmtao09.cox.net ([68.230.241.30]:40071 "EHLO fed1rmmtao09.cox.net") by vger.kernel.org with ESMTP id S1751333AbWF3R6C (ORCPT ); Fri, 30 Jun 2006 13:58:02 -0400 Received: from assigned-by-dhcp.cox.net ([68.4.9.127]) by fed1rmmtao09.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060630175801.LGWP6385.fed1rmmtao09.cox.net@assigned-by-dhcp.cox.net>; Fri, 30 Jun 2006 13:58:01 -0400 To: Matthias Lederhofer In-Reply-To: (Matthias Lederhofer's message of "Fri, 30 Jun 2006 19:49:24 +0200") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Matthias Lederhofer writes: > -e foo --or --near \( -e A -- or -e B \) > would mean lines containing foo or having A or B in the context. How would that "--near" be useful? You will see A or B either way.