How to use a Commit as reference in Cursor IDE?

I have made a commit with some changes in users/create.vue file. I want to use that commit as reference/context in Cursor Composer so AI can see the changes I made in create.vue file, so I can ask the AI to apply same changes to the edit file users/[id].vue, since both files have similar code and structure.

There git option when you type @ in composer, and it shows commits as well, but AI response was :

I don’t have direct access to the commit history or the changes made in “@create contact - tabs”. However, based on the code I can see, it appears you’re working with a tabbed interface for form fields.

1 Like

Need this feature too !

1 Like

yep this would be great. Currently you manually ask the ai to compare a sha of an old commit but it should be apart of the UI.

Hey, when you do @git, you should be presented with a menu like this, allowing you to pick a commit to provide as context to the AI - is this not the case?