News for hackers. Stuff that matters.

Ask HN: LLMs to write commit message? WTF

Came across a post on X today touting this as something awesome and it's definitely not!

May be I'm too old school, but imho if you need to call an LLM to write a commit message you're not committed enough! I think commits ought to be granular and cohesive enough that you can describe in a line or two. And taking time to summarize what you've done is only gonna help you in the future.

WDYT?

( 5 comments | 3 points | on HN )
Re:Ask HN: LLMs to write commit message? WTF by al_borland on Friday August 02, 2024 @07:36PM (#41143573)
It often feels like AI is a solution desperately searching for a problem.
Re:Ask HN: LLMs to write commit message? WTF by bdangubic on Friday August 02, 2024 @09:32PM (#41144052)
In time it took you to write this sentence, AI made $113.7 million dollars worldwide ;)
Re:Ask HN: LLMs to write commit message? WTF by beardyw on Saturday August 03, 2024 @02:45AM (#41145048)
Profit?
Re:Ask HN: LLMs to write commit message? WTF by WalterSear on Friday August 02, 2024 @08:20PM (#41143776)
It's one of my favourite features.

It allows me to commit rapidly while I'm working without losing my train of thought, making for embarrassingly more utile commits.

I'm not sure how summarizing things myself (and presumably, remembering) would help me in the future. And besides, it's what the commit message is for.

Re:Ask HN: LLMs to write commit message? WTF by Appsmith on Friday August 02, 2024 @11:04PM (#41144396)
Good to know! Thanks for sharing your workflow. To answer your question, I just think when you're scrolling through git log, seeing a message in your own words has a much better chance of bringing back all that went behind that commit. But I agree that's very subjective.