Re: filter-branch vs. <rev-list options>
On Thu, Mar 01, 2012 at 06:39:07PM -0500, Phil Hord wrote:
Show 9 quoted lines
> 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 "$@"
?