Cursor’s current @Git
options allows two types of diff:
- Diff with Main Branch
- Diff of Working State
In our team, we have a development
branch that’s different from main
branch.
And we regularly create pull requests to this development
branch instead of main
.
So, we feel the need to be able to tag a “Diff with Custom Branch”, so that we can specify which branch to be used as base branch instead of always using main
.
That way, we can ask the LLM to review only the diff with our development
branch.
This would be very helpful. Also, we need to have a diff for staged changes (what we are about to commit). Doing a AI Review for staged changes is something that a developer could use before commiting the changes.
Our team has run into the same issue. Our main
branch is not our working development branch, it is our release branch. Comparing against it is often unhelpful. The Git context is good, but it doesn’t provide enough options to be really useful. To be most helpful it should include:
Diff with branch X
Staged Changes
1 Like