Git Things
(matklad.github.io)
from schalkneethling@programming.dev to programming@programming.dev on 01 Jan 2024 12:52
https://programming.dev/post/7969962
from schalkneethling@programming.dev to programming@programming.dev on 01 Jan 2024 12:52
https://programming.dev/post/7969962
threaded - newest
A title as uninformative as the single
.
commit messages he suggests writing.Bare minimums of
typo
,refactor
,whitespace
,comments
are barely any effort – less than the thought it takes to name variables and functions.I really can’t agree with completely meaningless messages like
minor
and.
Git is a lot of things at once:
Meaningless messages like
minor
and.
don’t suit any of these roles - not even 1. Even when recording development history with all mistakes, you’d still need context when you look back at the history. Matklad is a well respected developer. I wonder why he’s make such a bizarre claim.… if you do this you completely negate your ability to use git bisect…
Squash fast forward merge is the only way
Quite the opposite. If you fast forward merge without squashing, you lose the ability to meaningfully bisect, since only the head of each merge is checked by CI - other commits may not even build
My point was about merging in general. Unless you’re either
Then you’re not going to be able to effectively use git bisect.
Assuming you have a project with continuous delivery, that is an absolute foot gun. Optimistically merge the change and then realize in situ that you forgot the
WHERE
part of your SQL command (or analog statement of the query builder)? No fucking thanks.I upvoted before reviewing the article in situ, then I had to go back and fix my upvote.