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

6

u/pipocaQuemada Jun 19 '15 edited Jun 19 '15

Which history would you rather be faced with when investigating this problem - the one shown above, or this one?

Honestly, the one above. I see a nice purple line there, and I can just trace it down with my eye and stop at each circle to see something relevant. It's quick and easy. In the lower picture I have to scan the text of the messages for SPA-156.

But how do you know which circle has something relevant? By reading the text of the message. So I don't see a difference there.

You need to read some of the text. Once you know what branches you're looking at for a fix or feature, you don't need to look at commits in unrelated branches. I don't have to read "PMI-2284" to see that the commit is unrelated; it's on a different branch so it can't be related.

If you've linearized history, there are no longer any ignorable unrelated branches; I suddenly need to read literally every single commit message to see if it's related.

-9

u/skinny85 Jun 19 '15

If you do a rebase before integrating your changes, then they should be nicely grouped together in that linear history. But like I wrote in the other comment, it might be the case where different people have different preferred ways to search through the history of a repo.