ellama icon indicating copy to clipboard operation
ellama copied to clipboard

[feature-request] Auto-generate commit messages in magit.

Open CsBigDataHub opened this issue 1 year ago • 4 comments

Prompt - https://github.com/ywkim/gpt-commit/blob/66badff3de08055f69b9ff892f9d6580b01268db/gpt-commit.el#L66

Commandline examples - https://github.com/ikramhasan/AI-Dev-Scripts/blob/main/ai_commit

Other commandline project - https://github.com/di-sukharev/opencommit

CsBigDataHub avatar Apr 09 '24 13:04 CsBigDataHub

Hi @CsBigDataHub

Not sure if it is really useful. Helpful commit message says why changes made, not what changed. And LLM can't extract the reason from diff.

s-kostyaev avatar Apr 09 '24 15:04 s-kostyaev

However, have you looked at the commits in this repository? :wink:

Projects have different commit message conventions, but I think the first line of commit should say what was changed. The body, if present, can tell more: sometimes it's why, sometimes it's just in higher level to get an idea of the change without looking into the code.

Is this explanation for 42da4b2 poor?

eras avatar Apr 12 '24 10:04 eras

Hi @CsBigDataHub

Not sure if it is really useful. Helpful commit message says why changes made, not what changed. And LLM can't extract the reason from diff.

Hi @s-kostyaev totally agree but this feature can help speedup the commit writing message with more detail. Of course generated content can be edited. Please see Opencommit projects prompt.

CsBigDataHub avatar Apr 12 '24 11:04 CsBigDataHub

Actually, I wasn't too sold on this until I saw the example above, which I'll paste here for anyone else reading this thread. I now think this is quite useful.

Screenshot from 2024-04-25 08-33-17

mcraveiro avatar Apr 25 '24 07:04 mcraveiro