From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karthik Nayak Subject: Re: [PATCH v5 07/11] ref-filter: add option to match literal pattern Date: Mon, 27 Jul 2015 21:29:37 +0530 Message-ID: References: <1437982035-6658-1-git-send-email-Karthik.188@gmail.com> <1437982035-6658-7-git-send-email-Karthik.188@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Git , Christian Couder , Junio C Hamano To: Matthieu Moy X-From: git-owner@vger.kernel.org Mon Jul 27 18:00:25 2015 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZJkpA-0006mr-Cn for gcvg-git-2@plane.gmane.org; Mon, 27 Jul 2015 18:00:20 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754079AbbG0QAJ (ORCPT ); Mon, 27 Jul 2015 12:00:09 -0400 Received: from mail-oi0-f50.google.com ([209.85.218.50]:34121 "EHLO mail-oi0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753221AbbG0QAH (ORCPT ); Mon, 27 Jul 2015 12:00:07 -0400 Received: by oigd21 with SMTP id d21so53987544oig.1 for ; Mon, 27 Jul 2015 09:00:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=7jEgHlEZNOeWOC07ywXBcjZWI+BUz2F9Y13j2XKyFUU=; b=OJDK2HjreJiqcNG70zxWJqiBGihTqpeeEIN26MtTswYi8ijrpl7vFSqUbzcDiwEGDa jTJk08XVDOFQZNRTsigo+lFcXb/jNLoeqYgua3wyqLSHMXs8VuhD0wA5bKKFYIKwSaPW QCURBvh/VzKZz0BJ7N7v05h9kjos3mbj/8hXjU2gq5f1ojETp3yq8Q/A/BSYghlXmHUv vNOMoWRSo//BqkyhWsYuGcYEE8kJ3iHnvTRxTPgYYah6XRw7hlIh5GzOS4qw0kL4ZHa3 9WfVt763HdQef7jeTrNuN/WehkkFYH+9KXMTk58bLccjjQ00zgnDqlYo6Tzd0gwivqel 4/+A== X-Received: by 10.202.180.133 with SMTP id d127mr27559717oif.104.1438012807266; Mon, 27 Jul 2015 09:00:07 -0700 (PDT) Received: by 10.182.26.73 with HTTP; Mon, 27 Jul 2015 08:59:37 -0700 (PDT) In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Mon, Jul 27, 2015 at 9:27 PM, Karthik Nayak wrote: > On Mon, Jul 27, 2015 at 6:24 PM, Matthieu Moy > wrote: >> Karthik Nayak writes: >> >>> --- a/ref-filter.c >>> +++ b/ref-filter.c >>> @@ -946,6 +946,32 @@ static int commit_contains(struct ref_filter *filter, struct commit *commit) >> >>> +/* >>> + * Return 1 if the refname matches one of the patterns, otherwise 0. >>> * A pattern can be path prefix (e.g. a refname "refs/heads/master" >>> * matches a pattern "refs/heads/") or a wildcard (e.g. the same ref >>> * matches "refs/heads/m*",too). >> >> Nit: you used to s/,too/, too/ in the comment in a previous version. >> > > That's carried over from a previous patch, ill change it. > >> I think I already suggested saying explicitly "... matches a pattern >> "refs/heads/" but not "refs/heads/m")", but I won't insist on that. Just >> a reminder in case you missed it. >> > > Sorry, I missed that out. Thanks for reminding. > If I remember right, I didn't change that cause It didn't pertain to this commit. I forgot to mention it in your previous mail. -- Regards, Karthik Nayak