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

Prune option for Fetch button #154

Closed
kirill-d-lappo opened this issue Aug 8, 2019 · 2 comments
Closed

Prune option for Fetch button #154

kirill-d-lappo opened this issue Aug 8, 2019 · 2 comments
Assignees
Labels
improvement An improvement to existing functionality
Projects
Milestone

Comments

@kirill-d-lappo
Copy link

Currently Fetch button does simple git fetch command

But remote branch can be deleted after PR is completed and branch was deleted on the remote.

I'd like to have configuration for fetch button, or additional call option with the ability to prune deleted remote branches.

Git Graph : 1.12.1
VSCode : 1.36.1

@kirill-d-lappo kirill-d-lappo added the improvement An improvement to existing functionality label Aug 8, 2019
@mhutchie
Copy link
Owner

mhutchie commented Aug 8, 2019

Thanks for making this suggestion, this would definitely be great to have in Git Graph! I'll implement a method to prune deleted remote branches in an upcoming release.

@mhutchie mhutchie added this to To Do in Git Graph Aug 8, 2019
@mhutchie mhutchie added this to the v1.13.0 milestone Aug 10, 2019
@mhutchie mhutchie moved this from To Do to In Progress in Git Graph Aug 10, 2019
mhutchie added a commit that referenced this issue Aug 10, 2019
…ch button, and fetch or prune a specific remote from the Repository Settings widget.
@mhutchie mhutchie moved this from In Progress to Ready For Release in Git Graph Aug 10, 2019
@mhutchie
Copy link
Owner

This will be available in v1.12.0. I ended up implementing:

  • A New setting git-graph.fetchAndPrune that enables pruning when fetching from remote(s) using the Fetch button on the Git Graph View Control Bar. Default: false (disabled)
  • Fetch or Prune a specific remote from the Repository Settings widget.

If you'd like to use it before the next release, you can download v1.13.0-beta.2, and install it following the instructions provided here.

@mhutchie mhutchie moved this from Ready For Release to Released in Git Graph Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An improvement to existing functionality
Projects
Git Graph
Released
Development

No branches or pull requests

2 participants