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

[Feature request] Capability to open old version of file in Git side bar #23011

Closed
Deilan opened this issue Mar 22, 2017 · 3 comments
Closed
Assignees
Labels
feature-request Request for new features or functionality git GIT issues good first issue Issues identified as good for first-time contributors help wanted Issues identified as good community contribution opportunities verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@Deilan
Copy link

Deilan commented Mar 22, 2017

There are currently two options available which are displayed after right-clicking at a file in Git side bar:

  1. Open Change (the comparison of the old and the new versions)
  2. Open File (the new version of the file)

It is requested to have the third option: Open Old File (the old version of the file).

@eamodio
Copy link
Contributor

eamodio commented Mar 22, 2017

@Deilan while not exactly what you are asking for here (as a menu choice), but the GitLens extension can provide this behavior by doing the following:

Using the command palette run GitLens: Show File History or press alt+h when you have the file opened.
Then from the quick pick menu that opens, choose the commit you want (the most recent one in this case) and then choose Open File and it will open that version of the file

I would love to be able to add commands to the git file menu, but that currently isn't supported

@joaomoreno joaomoreno added this to the April 2017 milestone Mar 23, 2017
@joaomoreno joaomoreno added feature-request Request for new features or functionality git GIT issues labels Mar 23, 2017
@joaomoreno joaomoreno modified the milestones: April 2017, Backlog Apr 21, 2017
@joaomoreno joaomoreno added good first issue Issues identified as good for first-time contributors help wanted Issues identified as good community contribution opportunities labels Apr 21, 2017
@joaomoreno joaomoreno removed their assignment Apr 25, 2017
Duroktar added a commit to Duroktar/vscode that referenced this issue May 15, 2017
@Duroktar
Copy link
Contributor

@Deilan I thought I'd take a crack a this one and got it working pretty much exactly like you requested. #26629

I'd love to hear what everybody thinks 😄
Cheers.

@joaomoreno joaomoreno self-assigned this May 17, 2017
@joaomoreno joaomoreno removed their assignment Jun 19, 2017
@joaomoreno
Copy link
Member

Fixed by #26629, thanks @Duroktar

@joaomoreno joaomoreno modified the milestones: July 2017, Backlog, June 2017 Jun 26, 2017
@joaomoreno joaomoreno self-assigned this Jun 26, 2017
@roblourens roblourens added the verification-needed Verification of issue is requested label Jun 27, 2017
@jrieken jrieken added the verified Verification succeeded label Jun 28, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
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 git GIT issues good first issue Issues identified as good for first-time contributors help wanted Issues identified as good community contribution opportunities verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

6 participants