From: Jeff King Date: Fri, 02 Mar 2012 01:00:19 GMT Subject: Re: filter-branch vs. Message-ID: <20120302010019.GD21835@sigill.intra.peff.net> In-Reply-To: <4F50089B.1090202@cisco.com> On Thu, Mar 01, 2012 at 06:39:07PM -0500, Phil Hord wrote: > git-filter-branch seems to be parsing its own switches and not > recognizing when they run out and the rest are "rev-list" options. > > Is there a way to force this break, or should I just expect to have to > rewrite the logic so that there's always a non-switch argument at the > start of the rev-list section? Or am I just doing this wrong? > > fwiw - I'm actually wanting to do this in a script: > git filter-branch --msg-filter cat --not --remotes --not "$@" Did you try "--": git filter-branch --msg-filter cat -- --not --remotes --not "$@" ?