AI git commit messages

Hi, I would love to use AI on my commit messages to automatically summarize the latest changes

20 Likes

You can do this by using the @git context provider in cursor’s chat or edit components!

image

e.g.,

( use whatever prompt you want to direct it more to your liking, of course )

10 Likes

For my future reference, here is the prompt posted:

“Take a deep breath and work on this problem step-by-step. Summarize the provided diff into a clear and concise written commit message. Use the imperative style for the subject, use the imperative style for the body, and limit the subject types to 50 characters or less. Optionally, use a scope, and limit the scope types to 50 characters or less. Be as descriptive as possible, but keep it to a single line. Return a single code block. Ready to be pasted into commit edits without further editing.”

8 Likes

This is GOLD!!! :1st_place_medal:

1 Like

Would love to see this prefilled into the Source Control view’s commit message, when empty or filled with an AI-generated message, and updated whenever the git staged items change.

17 Likes

+1 :open_hands:

The Copilot auto-generate version is in many cases not working well. I use the working state as well sometimes. But this does not differentiate between staged and unstaged changes unfortunately. Often when I have other pending changes I cannot use it.

+1 Having this as a cursor feature would be really great!

1 Like

+1 to this. :slight_smile:

Having recently let Github Copilot expire after moving to Copilot++, I find myself missing the Copilot Commit message suggestions :sparkles: button.

Would love to see Cursor take this on too. :slightly_smiling_face:

1 Like

I absolutely miss this feature the most, while evaluating Cursor, and considering moving from Copilot!

1 Like

More specifically, it would be useful to do this only for the ‘staged’ changes for the commit, like Github Copilot’s extension does.

2 Likes

This would be a nice feature after reviewing all the points of the code review, cursor could produce a nice commit message summarizing the changes.

AI commit messages are now possible (it was integrated into VSCode) by clicking the stars.

Screenshot 2

But it would be cool if the message were prefilled and updated when:

  1. the git stage changes, AND
  2. only when the current commit message is either empty or AI generated (i.e. don’t overwrite a human provided input).
1 Like

This is not true. The star gets added by Copilot extension. It’s not a part of VS Code itself so the Cursor team will need to add it separately.

3 Likes

+1 to this request

2 Likes

I agree this is a needed feature

1 Like

This function is required

need this feature too

1 Like

Any movement here?
This should be quite easy to implement…

I know I can use the @git feature, but this only let’s you add unstaged changes. A shortcut that generates a commit message based on the staged changes would be so great! :slight_smile:

6 Likes

Will be very useful this feature

3 Likes

If it could be directly used like with copilot AI generated message it would be awesome. And also being able to add a custom prompt for generating the message would be lit !