Ticket Hash: | 6778fd3f4a480b4d4090513aca2a67684cc2ac54 | |||
Title: | Need a Branch Delete option | |||
Status: | Fixed | Type: | Feature_Request | |
Severity: | Important | Priority: | ||
Subsystem: | Resolution: | Overcome_By_Events | ||
Last Modified: | 2010-01-02 03:13:28 | |||
Version Found In: | d5695157d0 | |||
Description: | ||||
Please add the ability to delete a branch using "fossil branch del xxx". This is great for experimental work where you create a branch to try out a feature, and then you simply delete it if things don't work out and you no longer have use for that branch.
chi added on 2009-12-21 00:46:47: Or do you want to remove all the checkins of that branch from the repository? This would be more difficult, was Fossil try hard never to forget anything already committed. Furthermore there would be the problem, that removed branches could come back by syncing with another repository that still has said branch. So this feature ought to have a very complex semantik I fear ... anonymous added on 2009-12-31 17:14:59: git co -b crazyFeature hack, hack, hack... git ci -a hack, hack, hack... git ci -a If you see that the crazy feature did finish correctly, then you are set up: git co master; git merge crazyFeature; git branch -d crazyFeature If the crazy feature was, well... just crazy, and you just want to drop away that crazy code: git co master; git branch -d crazyFeature anonymous added on 2010-01-01 22:32:12: drh added on 2010-01-02 03:13:28: fossil commit -private The resulting branch will never be synced to other repositories. |