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

Revert single change from diff view #21299

Closed
tamlyn opened this issue Feb 23, 2017 · 3 comments
Closed

Revert single change from diff view #21299

tamlyn opened this issue Feb 23, 2017 · 3 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@tamlyn
Copy link

tamlyn commented Feb 23, 2017

When viewing the diff of a modified file against the most recent repository version, I would like to be able to revert (i.e. git checkout -p) individual changes one at a time.

For example in WebStorm I can click the little chevrons next to the change to apply it to the other side:

screen shot 2017-02-23 at 16 35 50

This is somewhat related to #10782 on the functionality side and to #5770 on the UI side.

@roblourens
Copy link
Member

This is implemented if you open a diff view, click the ... button, and select "Revert selected lines". Better UI is tracked in those other issues though.

@roblourens roblourens added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 24, 2017
@tamlyn
Copy link
Author

tamlyn commented Feb 27, 2017

Sounds great but I can't see it :(

  1. Make some changes to a tracked file
  2. Click on Switch to Changes View icon in top right of editor pane
  3. Select the changed lines
  4. Click on ... icon in top right of diff pane
  5. I see Stage Selected Lines but nothing about reverting

Where am I going wrong? Using v1.9.1.

@roblourens
Copy link
Member

Oh sorry this is only in 1.10, the insiders build. It will be released this week. I was thinking it was in 1.9 too.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants