From: Jay Soffian Date: Mon, 02 Mar 2009 22:58:07 GMT Subject: Re: [RFC] Refspec patterns with * in the middle Message-ID: <76718490903021458s497a04a9p5c81a302cb09666a@mail.gmail.com> In-Reply-To: <7v1vtfmtwj.fsf@gitster.siamese.dyndns.org> On Mon, Mar 2, 2009 at 5:39 PM, Junio C Hamano wrote: > I personally do not think that makes much sense (and I find ** ugly, too). > > We traditionally supported '*' only at the end, and it always has meant > "match through the end, including slashes". Oh, good point, I had not thought that through very well. > Requiring 'match including slashes' to be spelled as '**' only when it is > not at the end is unnecessarily confusing. > > Is there a valid use case when * wants to match across directory > boundaries when it is not at the end?  I offhand do not think of a sane > one. > > So, it might make it easiest to understand if we say * usually does not > match slash, except when it is used at the end immediately after a slash, > in which case it means "match through the end". That seems simple enough. j.