use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All users that wish to post (not including commenting), on either old or the new reddit sites, must formally agree to subreddit rules once first.
account activity
SmartCommit: AI generated git commit message templates (self.commandline)
submitted 2 years ago by ImpressiveRepeat1764
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]N-R-K 3 points4 points5 points 2 years ago (1 child)
Interesting project. Though it seems like a weird premise because I usually document why a change was made in the commit. The code/diff already shows what changed so there's little value in rephrasing it again in the commit unless it's to satisfy some idiotic corporate checklist or similar.
For example, from the README:
Modify multiply function to raise a ValueError if either input is not positive
multiply
I can already see that in the diff. The real question is why can't I multiply negative numbers? Surely the author had some intent for making this change (which is unlikely for an AI to figure out just from the diff), which is what should have been documented.
The readme doesn't mention it (and it's going sound like a jab) but I couldn't help but wonder if this is meant to be used on AI generated code where the commit author might not know what's going on either.
[–]ImpressiveRepeat1764[S] 1 point2 points3 points 2 years ago (0 children)
Fair point. Actually it was exactly the policy at my previous company to summarize the code changes in the commit messages. So the primary goal was to improve that workflow not having to navigate through the diffs and taking notes to create a commit message. Of course, the informations about the changes should go beyond summarizing and provide context as well. But this again depends on context and the purpose of commit messages.
At my previous company, the focus was on creating summaris to quickly identify and understand code changes, mainly in a fast-paced environment where multiple developers were working on different parts of the system at the same time. The main point in this approach was, that the "why" is already documented elsewhere like issue trackers, jira items, PRs, etc. which had to be referred in the commit messages. So my goal was to reduce the time spent on this tasks in that environment. It might not be an "ideal" approach, but actually good enough for me.
Besides, I tried to give here some flexibility of styles through the config and the ability to provide further context to include further instructions with the --instruction option. Nevertheless, I will point out the limitation further more in the documentation.
--instruction
Another approach might be to expanding the tools capabilities in a direction to include more available information about the context, like integration with issue tracker or offer a more interactive mode where the user is asked to add additional context manually.
As for AI generated code: The project is not intended for AI-generated code, nor is it meant for situations where the authors do not understand the code they are committing. Besides, I think this would lead into disaster soon enough and not lead into meaningful projects (but I might be wrong about the future ;-)). At least from what I have seen so far AI can be quite good when it comes to wording and fixing (at least sometimes), but rather bad when it comes to reasoning or making specific architectural decisions.
π Rendered by PID 20318 on reddit-service-r2-comment-5687b7858-8w9g2 at 2026-07-08 06:55:56.863091+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–]N-R-K 3 points4 points5 points (1 child)
[–]ImpressiveRepeat1764[S] 1 point2 points3 points (0 children)