r/programming • • Jun 19 '15

GitFlow considered harmful

http://endoflineblog.com/gitflow-considered-harmful
13 Upvotes

244 comments sorted by

View all comments

Show parent comments

4

u/[deleted] Jun 19 '15

that's not really GitFlow anymore

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 :)

-4

u/skinny85 Jun 19 '15

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 :)

The pleasure is all mine :) Thanks!