Skip to content

Copilot Should Visually Preview Effects of Suggested Git Commands #249753

Open
@Plasma3

Description

@Plasma3

Copilot should visually preview what the result of a suggested git command would do. For example, if Copilot suggests a command like `git add . && git commit -m "init", it could show that it's going to stage the file and commit it with the message being "init".
Maybe show the source controll tab before and after.

Copilot whould like to add that:

Motivation:

Prevent accidental data loss or confusion from running destructive or complex git commands.
Help users (especially those new to git) gain a better understanding of what each command will do.
Improve trust and safety when using Copilot’s CLI suggestions.

Potential Implementation Ideas:

Show a graphical branch diagram preview for commands that affect branch history.
Show a diff summary for commands that modify files/index.
Provide a natural language summary of the command’s effect.
Integrate with VS Code’s existing git UI where possible.

Who would benefit:

All Copilot users, especially those less familiar with git.
Teams working on complex repositories or workflows.

Thank you for considering this feature!

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions