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

13

u/[deleted] Jun 19 '15

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.

-2

u/skinny85 Jun 19 '15

Author here. It's exactly like you described.

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.

11

u/[deleted] Jun 19 '15

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.

-11

u/skinny85 Jun 19 '15

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.

→ More replies (5)