Re:Git-absorb: Git commit –fixup, but automatic
by notlinus on Thursday September 26, 2024 @01:55AM
(#41654970)
I wish people would stop saying "atomic commits" and start saying "main/master is stable", because that's what they actually mean. Every git commit is atomic, by definition... But people want every single possible revision to be green and buildable, which is different, and has nothing to do with git. I don't think it makes sense (tags are a lot more helpful for marking what is and isn't stable), but hey.
[ Parent
| on HN ]
Re:Git-absorb: Git commit –fixup, but automatic
by usr1106 on Thursday September 26, 2024 @04:19AM
(#41655846)
Yes, atomic commits is not a very descriptive term. But main/master is stable is only a necessary condition, not a sufficient one.
If you squash (or mix from the beginning) several unrelated changes into a single commit, main/master would be stable.
AFAIK atomic commits means nothing can be taken away without breaking the change and nothing needs to be added to make the change work. How to express that without 2 clauses is indeed a good question.
Re:Git-absorb: Git commit –fixup, but automatic
by assiniboine on Thursday September 26, 2024 @04:21AM
(#41655865)
Atomic commits ensure each change works independently.
Re:Git-absorb: Git commit –fixup, but automatic
by usr1106 on Thursday September 26, 2024 @04:47AM
(#41656040)
That cannot be achieved in general. Later commits often depend on some earlier one.
Re:Git-absorb: Git commit –fixup, but automatic
by keybored on Thursday September 26, 2024 @03:39PM
(#41662357)
People say what they mean.
“Atomic” sometimes means conceptually: does one thing. Sometimes it means “builds”. Or “works”. And yes: they do mean every single commit builds. Not just on main.
You don’t have to put words in people’s mouth.