Skip to content
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

SCM Graph - Outgoing commit should have Undo Commit #203313

Closed
joaomoreno opened this issue Jan 24, 2024 · 1 comment
Closed

SCM Graph - Outgoing commit should have Undo Commit #203313

joaomoreno opened this issue Jan 24, 2024 · 1 comment
Assignees
Labels
feature-request Request for new features or functionality scm General SCM compound issues
Milestone

Comments

@joaomoreno
Copy link
Member

joaomoreno commented Jan 24, 2024

Testing #203075

It would be great to have an Undo Commit and have it appear in the context menu of outgoing commits.

  • If the commit is the last one, it just does what Undo Last Commit does, we have this today.
  • Otherwise, it rebases the commits such that the commit that was selected gets moved to the top, thus becoming the last. (see SCM Graph - Support reordering outgoing commits #203315) Then, Undo Last Commit can run.

Furthermore, Git: Undo Commit... could be an F1 action which would first show all outgoing commits in a quick pick. Once the user picks a commit, the steps above would run.

@joaomoreno joaomoreno added the feature-request Request for new features or functionality label Jan 24, 2024
@lszomoru lszomoru added the git GIT issues label Jan 24, 2024
@lszomoru lszomoru added this to the February 2024 milestone Jan 24, 2024
@lszomoru lszomoru modified the milestones: February 2024, On Deck Feb 16, 2024
@lszomoru lszomoru added the scm General SCM compound issues label Dec 10, 2024
@lszomoru lszomoru changed the title SCM: Outgoing commit should have Undo Commit SCM - Outgoing commit should have Undo Commit Dec 10, 2024
@lszomoru lszomoru removed the git GIT issues label Dec 10, 2024
@lszomoru lszomoru modified the milestones: On Deck, Backlog Dec 10, 2024
@lszomoru lszomoru changed the title SCM - Outgoing commit should have Undo Commit SCM Graph - Outgoing commit should have Undo Commit Dec 20, 2024
@lszomoru
Copy link
Member

Closing as we already track the feature request to add "Revert Commit" to the SCM Graph.

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Feb 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality scm General SCM compound issues
Projects
None yet
Development

No branches or pull requests

2 participants