This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Display remote-tracking branches in branch list #302
Open
Description
Currently if the user fetches all remote branches, there is no way to checkout a newly-fetch branch.
For example, imagine a branch foo
exists on the remote but you don't have it locally.
➜ git fetch
From https://github.com/kuychaco/test-repo
* [new branch] foo -> origin/foo
git branch
will not show it as a local branch until you type either git branch foo
or git checkout foo
Right now we are populating the branches select list by using the output to git branch
. To include branches that the user can check out that they have fetched, we should perhaps also display output from git branch --remotes
origin/my-branch
origin/HEAD -> origin/master
origin/foo
origin/qux