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:27:29 +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 17:58:10 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 1ZJkmz-0004pt-0p for gcvg-git-2@plane.gmane.org; Mon, 27 Jul 2015 17:58:05 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754605AbbG0P6A (ORCPT ); Mon, 27 Jul 2015 11:58:00 -0400 Received: from mail-ob0-f170.google.com ([209.85.214.170]:34826 "EHLO mail-ob0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754567AbbG0P57 (ORCPT ); Mon, 27 Jul 2015 11:57:59 -0400 Received: by obbop1 with SMTP id op1so62742264obb.2 for ; Mon, 27 Jul 2015 08:57:58 -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=Tpclu2Qia4VzzM55T8xcJDThACLGGMftWDQzlp0CnME=; b=gvtAoRgj+0ULbje/of8zRoyBrLKTTpXO8xYXgFnKUe+K4bTcBmLcF73FciBeXQo842 TG5WQt9NCUcqTD5FIPHYQTz7tagcOD81X/i45L3+daMvq1ntVGQcyV07mqDPRu2ylvyu TBJ7/HyVmcL4IDmQ7BEbkzf9jms0984OcGjNWO5RksvACNt0m2I/6hiGQ1h0bQij8uTz fQWQJOS11HtV841QnpxVXJGecNopR6fRAwnFlywkh/8k71NVUaIqzoSD+DbFXoaOmHyo vOkshddlHig5vgWmU3/6AwGbjioT7BVE0b+JjFMyl2zH9P9Mm6d7YRkubmyVdSQHWpVQ r7tQ== X-Received: by 10.182.153.161 with SMTP id vh1mr28256995obb.34.1438012678751; Mon, 27 Jul 2015 08:57:58 -0700 (PDT) Received: by 10.182.26.73 with HTTP; Mon, 27 Jul 2015 08:57:29 -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 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. -- Regards, Karthik Nayak