Skip to content

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

Closed

Description

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).

Activity

  1. eamodio commented on Mar 22, 2017

    @eamodio
    Contributor

    Michael Ovchinnikov (@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

  2. added
    feature-request
    git
    on Mar 23, 2017
  3. added
    good first issue
    help wanted
    on Apr 21, 2017
  4. Duroktar commented on May 15, 2017

    @Duroktar
    Contributor

    Michael Ovchinnikov (@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.

  5. joaomoreno commented on Jun 26, 2017

    @joaomoreno
    Contributor
  6. added
    verification-needed
    on Jun 27, 2017
  7. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestgitgood first issuehelp wantedverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions