carlrobertoh / CodeGPT

The leading open-source AI copilot for JetBrains. Connect to any model in any environment, and customize your coding experience in any way you like.
https://codegpt.ee
Apache License 2.0
1.01k stars 213 forks source link

Explanation of changes in the commit #688

Closed rakleed closed 3 weeks ago

rakleed commented 3 weeks ago

Describe the need of your request

Sometimes there can be a lot of changes in a commit, and you would like to quickly understand what changes are being made. Or something is unclear, because you don’t know the specifics of the language, but you need to quickly understand what the author did. And then you have to try to figure it out yourself, which can be time-consuming.

Proposed solution

Add an "Explain changes" option to the context menu when right-clicking on a commit in Git Log (the JetBrains AI plugin has similar functionality).

Additional context

No response

carlrobertoh commented 3 weeks ago

This seems a really cool idea!

Would something like this work?

https://github.com/user-attachments/assets/f8f48fca-17d2-48a8-ac2f-f0577d4837b4

rakleed commented 3 weeks ago

@carlrobertoh thanks, this looks cool. But I would like to be able to call the command for explanation from the context menu, which would be easier. As an example, https://www.jetbrains.com/help/idea/work-with-commits.html#ai-explain-commit

carlrobertoh commented 3 weeks ago

Thanks for the link!

I will add this in the next release.