Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to do a git fetch -p to cleanup old deleted branches #229

Closed
scofflan opened this issue Aug 17, 2016 · 4 comments
Closed

Add ability to do a git fetch -p to cleanup old deleted branches #229

scofflan opened this issue Aug 17, 2016 · 4 comments
Milestone

Comments

@scofflan
Copy link

Currently I have a few repos whcih get a lot of WIP branches that get deleted on the origin but remain locally on sgit. Adding the functionality to do a fetch pull would help to keep the branch list clean.

@maks
Copy link
Collaborator

maks commented Aug 18, 2016

If I understand correctly, you'd like to have SGit automatically remove local refs to refs on remotes that have been deleted?

@scofflan
Copy link
Author

I'm not sure doing this automatically would be the way to go. That could be problematic. However having an option to select "fetch and prune" would be very helpful for people following repos with many temporary remote branches.

The man entry has the following for git fetch -p

-p, --prune
After fetching, remove any remote-tracking references that no longer exist on
the remote. Tags are not subject to pruning if they are fetched only because of
the default tag auto-following or due to a --tags option. However, if tags are
fetched due to an explicit refspec (either on the command line or in the remote
configuration, for example if the remote was cloned with the --mirror option),
then they are also subject to pruning.

Thanks, I love SGit,
Sam

@maks maks added this to the v1.3.4 milestone Aug 18, 2016
@maks
Copy link
Collaborator

maks commented Aug 18, 2016

Thanks Sam, yes that is what I meant, I should have just copy/pasted the manual entry as you did rather than trying to re-phrase it.
This sound like a very useful feature, I've put it into the first milestone that I think I can reasonably get it into. In regards to UI, I think it will go into the fetch dialog as an option, though I'm open to other suggestions as I'm not convinced that's necessarily the best way to implement this.

@maks
Copy link
Collaborator

maks commented Nov 2, 2016

This issue was moved to maks/MGit#35

@maks maks closed this as completed Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants