Re:Git Things
by Izkata on Monday January 01, 2024 @05:17AM
(#38830878)
Even something that simple falls into what vs why: You can tell it was spacing from the diff, so the commit message should be "linting" or "alignment" or something similarly more meaningful.
[ Parent
| on HN ]
Re:Git Things
by quickthrower2 on Monday January 01, 2024 @07:13AM
(#38831309)
The diff may not be visible. The person might be doing a complicated cherry pick or merge and scrolling through hundreds of commits. If the message explains it, it saves them digging in.
My analogy is your bookshelf books still need jackets!
First line is for what, the rest of the commit message is for the why - if needed.
As for "spacing", you can probably tell the why from the diff as well. The "what", however, tells you whether it's even worth opening the diff.