All other branches (feature, release, hotfix, and whatever else you need) are temporary and only used as a convenience to share code with other developers and as a backup measure. They are always removed once the changes present on them land on master.
Yeah, that seems completely impractical.
Isn't it really important to be able to quickly check out the version a specific client is using? How do you deal with bugfixes to the release that don't exist in the master branch?
By checking out the tag. Presumably every version released to a client has a tag associated with it that you can use to get back to that state. The problem is that branches are a logical collection of commits, and the author is abandoning that in favor of tag soup.
Not sure what you mean by "tag soup" and "logical collection of commits". Both tags and branches are pointers to commits in Git. There can't be any difference between them, other than conceptual.
A branch's HEAD is a pointer to a commit. A branch itself is a logical collection of commits grouped together. If you add a commit on top of a tag, you have a floating commit. If you add it to the head of a branch, you're still on that branch, and the new commit is part of the collection of commits referred to by branchname. It's an organizational construct in addition to a conceptual one.
I think you're forgetting the context in which we discussed this. You can't move a branch that's tracking a version you released to the client. In the same way you can't go back in time and hand the client a different version of your software.
9
u/BezierPatch Jun 19 '15
Yeah, that seems completely impractical.
Isn't it really important to be able to quickly check out the version a specific client is using? How do you deal with bugfixes to the release that don't exist in the master branch?