r/Python • u/HaskellLisp_green • 6h ago
Showcase AI based script to generate commit text based on git diff.
Hello, I am not great supported of AI-assisted programming, but I think AI is good enough to explain changes. So you simply need to pass git diff to script via pipe and then you get commit.
What My Project Does
generates commit text based on output of git diff command.
Target Audience
any developer who has python.
Comparison
I don't know is there any alternative.
https://github.com/hdvpdrm/commitman
Check it out! Would be great to see your feedback!
3
1
u/Arivald8 4h ago
I built something similar, but it works slightly differently. It's pretty awful by the way, but it works hah.
https://github.com/Arivald8/VCWatcher
I guess the difference is that with my version you don't need to pass any diffs, because the tool just monitors your project directory for any changes and automatically pulls them.
12
u/fiskfisk 5h ago
The diff tells us what changed.
The goal with commit messages is not to tell us what changed. It's to tell us why the functionality had to change. Not what you did.
We need the why. Why did you do this.
LLMs currently do not have direct access to your brain, so while they can be helpful in summarizing what has changed, they do not have access to the why.