Skip to content

open any file from another branch #708

Closed
@emmanueltouzery

Description

@emmanueltouzery

Recently #646 was implemented, but it doesn't completely work for me. The reason being that sometimes a file is renamed, and then the command (understandably) fails. In emacs/magit this is handled like that: you run the command, then by default the same filename as your current file is displayed and you just press enter if you want the same filename, but you can edit the filename if needed.

Maybe that gitlens feature, gitlens.openFileRevisionFromBranch, could be improved so that if it doesn't find the file in another branch, it doesn't fail but rather gives the user the opportunity to manually specify a filename.

In my case I renamed a .ts file to .tsx, but there could be many examples of renaming files.

Metadata

Metadata

Assignees

Labels

help wantedWant community input and/or pull requestverified ✔Verified

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions