-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: git diff mention #217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
Thanks @samhvw8! This is a bigger PR so I want to spend a little time with it to make sure I understand the proposed changes deeply. I'm currently travelling though, so it might take a little while. Thanks for your patience! |
|
Perfect system how can i enable this version on my pc ? |
4ca76df to
0dcae05
Compare
|
I love the idea of adding various git-related information to the @mentions, similar to what Cursor has: https://docs.cursor.com/context/@-symbols/@-git As for the git-related tools - should that just be covered with a git MCP server for people who are interested? |
|
Thanks for your reply,
Cursor has convenient @mentions tools that we can use as a reference for our implementation.
Could we implement this directly into cline? If we separate it into MCP, it would depend on models to process MCP correctly, and it could make the system prompt longer when there are too many git tools. |
I thought all of the models could handle MCP through Cline, and that it wouldn't turn out to be any different than what you added to the system prompt in this PR (and would only be added to the system prompt for people who choose to enable the git MCP). |
|
@samhvw8 would you be up for splitting out a PR specifically focused on adding git support to the @mentions while we continue to discuss the tools aspect? Thank you!! |
0dcae05 to
1c74bee
Compare
|
Hi @mrubens, |
Thanks! I'm playing around with a similar PR based on what you did - will share it back to you soon. |
Description
New feature to make user can mention git diff and git status of current repository
New tool git stage & git commit for make cline generate commit message
Screenshot

Type of change
How Has This Been Tested?
Checklist:
Additional context
Related Issues
Reviewers
Important
This PR adds Git diff and status mentions, and tools for staging and committing changes, with UI and backend support.
GitProviderclass inGitProvider.tsto handle Git operations likegetDiff(),getStatus(),stage(), andcommit().ChatRow.tsxandChatTextArea.tsxto handle new Git actions (gitStage,gitCommit).git-diffandgit-statusinContextMenu.tsx.context-mentions.tsto includegit-diffandgit-statusmentions.parseMentions()inmentions/index.tsto fetch and display Git diffs and statuses.GitProviderinGitProvider.test.tsto verify Git operations and error handling.This description was created by
for 8e480f7b00400dff0ae739f428b670f8989bde8e. It will automatically update as commits are pushed.