Re: filter-branch vs. <rev-list options>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 "$@"

?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]