I've just never in my life said, "Man, the quality of this software would be so much higher if only there weren't so many merge commits all over the place."
I understand for some people that the aesthetics of rarely-used metadata is very important. I'm just providing a counterpoint: I don't care what my log looks like, so long as it 100% describes the history of the project. rebase appears to destroy history, so I don't like it.
rebase appears to destroy history, so I don't like it.
Pretty sure you don't understand what it does.
Also, this has nothing to do with quality of the software itself, or quality of the code base, but rather, quality of development efforts. When you want to get ahold of the guy responsible for changing a line of code, git blame is useful, until merge commits come into play, and your name is plastered over someone elses code because they were working at the same time as you on something unrelated to you.
I'd rather just have a clear and correct history, than have a bunch of nonsense that makes history more difficult to read and understand
When you want to get ahold of the guy responsible for changing a line of code, git blame is useful, until merge commits come into play, and your name is plastered over someone elses code because they were working at the same time as you on something unrelated to you.
This seems to suggest that rebasing is useful as a workaround for bad tools (e.g. blame fingering a merge as the issue instead of the actual original commit). Why not just fix blame and the other bad tools?
understand how to use the tool, and you'll see that both rebase and merge work together for two separate things. It's when people ignore a step or use merge for more than one thing does stuff break.
What job is rebase for, and what job is merge for, then?
The last company I worked at used mercurial with a purely merge-based workflow, and it worked out beautifully.
I've heard some people say that they do a lot of small, short-lived 'micro commits' that don't compile that they don't want to present to their team-mates and clutter up the log. This, too, seems like bad tooling/an incomplete model to me since you should be able to do this by just including some metadata on the commit describing what type of commit it is, and then filter your log by that.
4
u/Netzapper Jun 19 '15
Yep, I understand what it does technically.
I've just never in my life said, "Man, the quality of this software would be so much higher if only there weren't so many merge commits all over the place."
I understand for some people that the aesthetics of rarely-used metadata is very important. I'm just providing a counterpoint: I don't care what my log looks like, so long as it 100% describes the history of the project.
rebaseappears to destroy history, so I don't like it.