4 ms·
>What happens with the branches that are forked from your branch? Care to elaborate? Do you mean when removing a branch, what happens to forked/child branches?
by imakesnowflakes 12y ago
>What happens with the branches that are forked from your branch?
Care to elaborate? Do you mean when removing a branch, what happens to forked/child branches? There is no ambiguity, a change set cannot exist without it's parent or cannot be moved to a different parent without changing its identity. (The revision hash is a function of its ancestors too). So if you remove a branch, the forks/child branches will be removed as well.
Anyway, that was just a made up example to show how naming can affect reasoning. I don't think Mercurial or Git allows you to delete branches directly....
- Manishearth 12y agoSince Git is graph based, there's no guarantee that removing the branch commits will work since there might be other branches using it. Of course, if you delete a branch and then run git prune, its commits should disappear as long as they weren't part of another branch.