logoalt Hacker News

PUSH_AXyesterday at 4:13 PM3 repliesview on HN

> Useless? So you never use “git annotate” or your IDE to see who wrote a line of code whose purpose puzzles you, and go to the commit message to see what they were trying to accomplish?

Personally no, the code is the "truth". If I need more I'm going to open a dialog with the author, not spend time trying to interpret a 7 word commit message, "good" or otherwise.


Replies

agateauyesterday at 7:50 PM

The code is the present truth, the commit messages can inform you about how it got turned into this truth. Interestingly, I recently wrote a short article about this: https://agateau.com/2026/on-commit-messages/

show 1 reply
macintuxyesterday at 4:23 PM

The code can only convey what is being done (and then, in some cases, only superficially). It can't convey what decisions were made, what alternatives were discarded, what business motivations may have led to that code.

And for old enough code, the author may not be available, or more likely doesn't remember.

show 1 reply
wreathyesterday at 4:58 PM

And what of the original author is not there anymore?

show 1 reply