I absolutely disagree with his indictment of --no-ff. The purpose of --no-ff (in GitFlow) is so you can do git log --first-parent ... on develop and see what features have been integrated, without being distracted by how those features were implemented. In fact, your release notes could be as simple as using that git log --first-parent ... with some extra options to pretty it up. Differentiating a group of commits that belong to a single feature is significantly easier when using --no-ff: just look at the two commit histories he presents. Looking at the second one, it's difficult to determine which commits were part of a specific feature.
I sort-of agree with him about the "master" branch (used for release commits merges only) is slightly redundant. Having that single branch makes having multiple minor releases out simultaneously impossible: ie, I release 1.0 now, then 2.0 some time later, then 1.1 & 2.1 after that (because I found a security bug that was hotfixed on both releases). OTOH, you could argue that having the release branch has the same advantages as develop/feature-* (like the --no-ff above) except for master/hotfix-*.
I hope I wasn't too critical of the author of GitFlow in this article. That certainly wasn't my intention.
A title of "$FOO considered harmful" seems pretty inflamatory to me. A better title (I think) would have been "A simpler alternative to GitFlow".
The purpose of --no-ff (in GitFlow) is so you can do git log --first-parent ... on develop and see what features have been integrated, without being distracted by how those features were implemented.
That makes little or no sense to me - can you point me to an actual git project that demonstrates this?
9
u/imMute Jun 20 '15
I absolutely disagree with his indictment of
--no-ff. The purpose of--no-ff(in GitFlow) is so you can dogit log --first-parent ...ondevelopand see what features have been integrated, without being distracted by how those features were implemented. In fact, your release notes could be as simple as using thatgit log --first-parent ...with some extra options to pretty it up. Differentiating a group of commits that belong to a single feature is significantly easier when using--no-ff: just look at the two commit histories he presents. Looking at the second one, it's difficult to determine which commits were part of a specific feature.I sort-of agree with him about the "master" branch (used for release
commitsmerges only) is slightly redundant. Having that single branch makes having multiple minor releases out simultaneously impossible: ie, I release 1.0 now, then 2.0 some time later, then 1.1 & 2.1 after that (because I found a security bug that was hotfixed on both releases). OTOH, you could argue that having the release branch has the same advantages asdevelop/feature-*(like the--no-ffabove) except formaster/hotfix-*.A title of "$FOO considered harmful" seems pretty inflamatory to me. A better title (I think) would have been "A simpler alternative to GitFlow".