Currently, the @git command provides two useful options:
- Diff with Main Branch
- Diff of Working State
These are great for quickly viewing differences between the current file and the main branch or the working state.
However, I think it would be incredibly beneficial to also include an option to view the diff of the Git staging area (eg. git diff --cached
/ git diff --staged
). This would be particularly useful when asking the AI assistant to generate commit messages based on the staged changes, or just as a way to point Cursor to the diff of certain files.
By having access to the diff of the staging area, the AI can provide more accurate and contextual commit messages, taking into account only the changes that are currently staged for committing.