This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 253144 - Add a shortcut for selecting branch deletes in Fetch wizard
Summary: Add a shortcut for selecting branch deletes in Fetch wizard
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-24 07:34 UTC by Christian Lenz
Modified: 2015-06-24 11:03 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lenz 2015-06-24 07:34:50 UTC
Inside the console I can use git fetch -a --prune to sync and remove the origin refs if branches where deleted. This is not possible in netbeans. Only fetch or fetch from upstream but this will only add new origins and will not remove old, not existing origins. Here you can find the definition of prune: http://git-scm.com/docs/git-fetch


Regards

Chris
Comment 1 Ondrej Vrabec 2015-06-24 09:28:01 UTC
Git -> Remote -> Fetch... on the second panel click 'Enable Deletes' and select the branches under origin/ you want to delete. Is it not enough? Not sure what more you require.
Comment 2 Christian Lenz 2015-06-24 09:52:26 UTC
Didn't know this feature, because I only use fetch from upstream. I think thats enough but why I have to select the branches? You have more options what you not need I think. The remote branches where deleted, why do we need to select them to delete it extra? When I use the command line and do git fetch -a --prune, I can't select a branch, maybe I can because of an extra command or so but I don't care. Is there a real case to do it like this way?
Comment 3 Christian Lenz 2015-06-24 09:53:15 UTC
For me I have to use git -> remote -> fetch -> enable deletes, select all branches and then ok. To much user interaction in this way.
Comment 4 Ondrej Vrabec 2015-06-24 10:01:17 UTC
For safety reasons, i think deleting a branch is a potentially risky action. So i let user have it completely under control.
There is a bunch of buttons already (select all/none, etc.) there could be another one "Select Deletes" probably.

I am against making this part of Fetch from Upstream action, because it has no UI and may bring unexpected results.
Comment 5 Christian Lenz 2015-06-24 10:51:58 UTC
Ok I understand the part. Thx. Than we can close this ticket and create a new one with a button to select deleted or so that I can use a shortcut for maybe alt + d to select deleted. To use more the keyboard than the mouse, in my case. Thx.