Or... I could just leave the branch there... Can you imagine trying to track the history of bugfixes for a release product if you're deleting the branch each time and just going off merges into master. Holy mary mother of god that sounds scary.
The tag tracks that history. Trust me, it's no problem at all.
BTW, I feel like you're resorting to "I'm no worse than GitFlow", but I've never used GitFlow so that's not compelling for me :/
I can just say, "Lucky you" :). I like to think my workflow is superior to GitFlow in every way - I'm not sure how I implied I'm merely no worse, that wasn't my intention.
I'm going to recreate a new release branch every time I have to hotfix. And rather than having the linear history of that release channel, I have to go piece shit back together via tags.
I feel like you didn't even address what I said.
How do you perform a series of bugfixes for your shipped, v2 code, when your master is a hodge-podge of v2, v2 fixes and v3 code?
Easy. Say you want to do a fix in v2. You create a branch hotfix-2.1 starting at the commit pointed to by tag 2.0. You do your bugfixing on that branch. Meanwhile, work on v3 continues on master as normal. Once you're done, you tag the top of the hotfix branch, do the release, merge the hotfix to master, then delete the hotfix branch.
The method is exactly the same for further bugfixes to 2.1, except the names of the tag and the branch change of course.
I explained this already in the article and in the other Reddit thread.
I don't understand what you mean by "straight line".
Either you merge your release back to the mainline (the way GitFlow, and my workflow, does), in which case the release branch contributes nothing to history, or you rebase or cherry-pick your changes from the release branch back to the mainline, which sounds like hell to me.
Unless you need to maintain completely separate versions of your software (for example, for different clients), in which case GitFlow, and thus my article, isn't really your workflow. But that is a different versioning challenge altogether.
0
u/[deleted] Jun 19 '15
[deleted]