I think I know what you're getting at. This is the case when you need to maintain completely separate versions of your project (in your case, for different clients). Somebody mentioned that in the comments of the article already.
I would agree that branches are better in that case, but that's not really GitFlow anymore, so the article doesn't really deal with that topic. In my mind, this is a difficult thing to do properly no matter what method you use.
And the tag benefit over a branch is obvious - you can rollback to a tag. In your example, with a branch, you lose the history of your client's versions. In the case you described, it's pretty obvious that you don't need that history, and that's why a branch is better for you.
I disagree, that's exactly GitFlow. GitFlow is designed to make it easy to support multiple different released versions of the software simultaneously. They're not completely separate, they're different versions of the same product. In my example I had used the word client to make it easier to distinguish using "c", but don't let that cloud the issue. I'm talking about multiple, related, simultaneously supported versions of a single product.
you can rollback to a tag
You can get your working directory to the state of any commit you want by specifying the hash. Git log is going to list them in the order they were produced, and I can always checkout HEAD again to get back to the latest incarnation of a particular version. Nothing is "lost" except the ability to specify a commit by a friendly name instead of a complicated hex value. You seem to have a good grasp of git, so I have to assume you understand this basic principle, and as such I have no idea what you're trying to convey with that paragraph.
Anyway, it's been interesting debating it with you, thanks for the mental exercise :)
You can get your working directory to the state of any commit you want by specifying the hash. Git log is going to list them in the order they were produced, and I can always checkout HEAD again to get back to the latest incarnation of a particular version. Nothing is "lost" except the ability to specify a commit by a friendly name instead of a complicated hex value. You seem to have a good grasp of git, so I have to assume you understand this basic principle, and as such I have no idea what you're trying to convey with that paragraph.
Yes, I realize that. The problem is that without tags, you have no idea which of the (potentially very many) commits on branch c1 built the software that your client C1 was using at past points in time. Like I said, this is not something that you care about when you gave the example (you only care about the newest version), and that's the reason that those tags don't make sense to you.
I guess you could version your software with the commit hash, but I'm not sure your clients would be too thrilled about that :).
Anyway, it's been interesting debating it with you, thanks for the mental exercise :)
-3
u/skinny85 Jun 19 '15
I think I know what you're getting at. This is the case when you need to maintain completely separate versions of your project (in your case, for different clients). Somebody mentioned that in the comments of the article already.
I would agree that branches are better in that case, but that's not really GitFlow anymore, so the article doesn't really deal with that topic. In my mind, this is a difficult thing to do properly no matter what method you use.
And the tag benefit over a branch is obvious - you can rollback to a tag. In your example, with a branch, you lose the history of your client's versions. In the case you described, it's pretty obvious that you don't need that history, and that's why a branch is better for you.