David Bremner <[email protected]> writes:
> Probably the command "git show-ref" does the right thing with those.
Thanks! I made some changes to use it instead of trying to parse the
output of git branch (which, of course, was a sin to begin with).
I also changed how you select branches or other interesting refs in
general: instead of
origin/feature
you now have to type (with completion help of course)
feature (origin)
And if you do switch to a remote branch, Magit offers to create a local
tracking branch instead.
The idea is that you only rarely switch to remote branches. It's more
common to start working on a remote branch and then you need a local
tracking branch for it. Thus, the name or a remote branch is more
important than the name of the remote.
This is true for me at least. We can add customization options, of
course, if this is annoying for different workflows.
Opinions?