From: Duy Nguyen Date: Sat, 31 Aug 2013 00:22:45 GMT Subject: Re: [PATCH] revision: introduce --exclude= to tame wildcards Message-ID: In-Reply-To: On Sat, Aug 31, 2013 at 6:55 AM, Junio C Hamano wrote: > +static int ref_excluded(struct rev_info *revs, const char *path) > +{ > + struct string_list_item *item; > + > + if (!revs->ref_excludes) > + return 0; > + for_each_string_list_item(item, revs->ref_excludes) { > + if (!fnmatch(item->string, path, 0)) > + return 1; > + } > + return 0; > +} If you pursue this, please use wildmatch instead so it supports "foo/**". -- Duy