Re: [PATCH] git-filter-branch could be confused by similar names
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Dec 30, 2007, 18:40 UTC
- Message-ID
- <20071230184056.GZ13968@dpotapov.dyndns.org>
- In-Reply-To
- <Pine.LNX.4.64.0712301700580.14355@wbgn129.biozentrum.uni-wuerzburg.de>
On Sun, Dec 30, 2007 at 05:03:32PM +0100, Johannes Schindelin wrote:
Show 9 quoted lines
> > On Sun, 30 Dec 2007, Dmitry Potapov wrote: > > > How about this: > > > > + grep '^refs/\([^/]\+/\)\?'"$ref"'$')" > > Maybe. I wonder whether just adding a "$" (which I obviously forgot) > would not be enough...
Adding '$' will certainly make things much better, but you will still have the same problem if you want to filter "master", but you have "origin/master" in your repo.
Dmitry