News for hackers. Stuff that matters.
Re:I’m a productive programmer with a memory of a fruit fly by tcoff91 on Monday September 19, 2022 @07:42PM (#32905667)
The commit message should contain all the unusual context needed to understand the change. In practice however, most people write terrible commit messages.
Re:I’m a productive programmer with a memory of a fruit fly by bornfreddy on Tuesday September 20, 2022 @12:34AM (#32907695)
It's not just that. Commit messages have a property that they get overwritten. When I refactor some code for performance reasons, I don't want to remove documentation - which is exactly what happens if I make a commit. True, older commit messages are available in the history, but... not conveniently available.
Re:I’m a productive programmer with a memory of a fruit fly by ParetoOptimal on Monday September 19, 2022 @10:19PM (#32906891)
Many never even use multi-line commit messages.
Re:I’m a productive programmer with a memory of a fruit fly by conradfr on Tuesday September 20, 2022 @08:15AM (#32910631)
And ideally the id of the ticket associated to the code change.