Diff from other branches than main

Feature request for product/service

Cursor IDE

Describe the request

Currently, its only possible to pass the agent the diff from main/default branch (using “@branch”). This is cumbersome when working on nested feature branches or in general branches that aren’t based on main.

It should be possible to compare other branches than main, for example “@release” to pass the diff with the release branch to the agent.

Unlikely to be added since previous tags such as @commit were removed. Now even if I attach @diff with visible changes, agent still runs git commands to analyze differences. Not sure if this is cursor issue or llm issue. Point being - ask agent to see the differences and use git -no-pager .. flag for git commands. Works well.

1 Like