Skip to content

Open File in Remote should let me pick a remote branch if an upstream one wasn't configured #209

@dahjelle

Description

@dahjelle
  • GitLens Version: 6.1.1
  • VSCode Version: 1.18.1
  • OS Version: macOS 10.12.6

Steps to Reproduce:

  1. Switch to a branch that isn't on the remote.
  2. Open a file.
  3. Try "Open File in Remote": the option doesn't exist.

Here's my use-case: I'm often assisting co-workers while working on my own feature branch. Most files are the same in master (for instance) and in my feature branch, and if I had to research a question for a co-worker, I will often research it in my feature branch (being mindful of potential code differences). If I have an answer, I'd usually like to send a URL to the appropriate code, perhaps on master.

As it stands now, I'd have to switch from my feature branch to master just to send the link.

I'm not sure what the best fix is, given the issue in #201. Perhaps a setting? Perhaps the ability to choose any branch on the remote?

I'm sure this issue is more complicated than I realize once one takes into account multiple remotes and the like, but I thought I'd share my workflow in hopes of a solution. :-D

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions