4 ms·
How is "Revert foo" different from "Revert 52e8ace0571ec9ac9b669bc5acfd0bcea537805d"? > Nowhere does the author say that commit messages are meaningless He do
by xkxx 10y ago
How is "Revert foo" different from "Revert 52e8ace0571ec9ac9b669bc5acfd0bcea537805d"?
> Nowhere does the author say that commit messages are meaningless
He doesn't. I say it. His commit messages are meaningless. To understand what's going on, you need to read his diffs, not commit messages. In his workflow, only reverts and merges provide any context, and for them git creates meaningful commit messages automatically.
- BugsJustFindMe 10y agoIt's different from rebasing to squash many commits into one. The article has nothing to do with hashes. Foo is also easier to parse mentally than umpty digits of hexadecimal vomit.
- xkxx 10y ago> It's different from rebasing to squash many commits into one. What is different? My point is, if you don't write meaningful commit messages for some commits, you probably don't need any commit messages for those commits at all. It reduces noise for people who read your `git log`. If you make a commit and then immediately revert it, instead of "foo", it's better to write at least "tried ...; didn't work".
- BugsJustFindMe 10y agoThe posted article is about whether to squash commits or not. The posted article is comparing the view of the commit as ultimate arbiter of feature history or the commit cluster (aka Pull Request) as ultimate arbiter of feature history. Putting details below the fold on a single feature commit makes them 99% invisible. The best solution, which the posted article suggests, is for git to natively support commit clusters. So that you can have just feature information and also meta information that isn't 99% invisible.
- deleted 10y ago[deleted]
- deleted 10y ago[deleted]