-
Notifications
You must be signed in to change notification settings - Fork 534
How to do equivalent of 'git fetch --prune' #624
Comments
Hey @blacksails, This isn't currently supported, but PRs are welcome! Cheers |
I would like to take a stab at this. Should i add a Prune method on the Remote type? Do you have anything else that I should be aware of before i start implementing it? |
That's awesome @blacksails, thanks! For supporting the equivalent of I think it would also be nice to add a |
I looked into this but I ran into som problems, I need some of the refspec methods, but where they go in the opposite direction eg. from dst to src. There is already a Src method, but it has different semantics compared to the Dst method. I would propose that we make the refspec methodnames consistent in both directions. Maybe something like
Samething goes for the Match methods. This is of cause backwards incompatible API changes. So maybe those changes should be targeted a new major version. In the mean time we could introduce some temporary method names. Does that sound good to you? |
Hey @blacksails, Sorry for the delay on this. Can you elaborate a little bit more on why those changes would be necessary? Refspecs are inherently a uni-directional concept so I'm not quite sure I understand why changing the API so that it has this symmetry is useful. |
Have there been any updates to this? |
I would like to be able to run something equivalent of fetch prune, but I cannot figure out how to do that, or if it is even possible. I read through issue #490 but that didn't help me much.
I would gladly help to implement this, if there isen't a way to do
git fetch --prune
alreadyThe text was updated successfully, but these errors were encountered: