News for hackers. Stuff that matters.
Re:Git-absorb: Git commit –fixup, but automatic by paulddraper on Thursday September 26, 2024 @06:44PM (#41664335)
> What is wrong with simply pushing a "Fix linting issues" in a new commit?

Everything.

1. git blame is obfuscated. "Fix lint" is not helpful or relevant. Tell me what actually changed.

2. git log is noisy. More stuff is harder to read than less stuff, and you're making me read more stuff.

3. git bisect is difficult. Interspersed broken commits requires more time to sift through. (Lint is a poor example, say it's "fix server config")

4. git cherry-pick is tedious. When you copy the dev change to a release branch (let's say you maintain 1.x, 2.x, etc), you must include errata.

Re:Git-absorb: Git commit –fixup, but automatic by greg0ire on Friday September 27, 2024 @04:25PM (#41675184)
5. git revert is tedious When one commit turns out to be bad, you can't revert it cleanly because your "Fix linting issues" builds upon it.