guicmds: offer remote and potential branches when checking out
commita14e674faae7a6cd22f16380b26385c7a3843581
authorDavid Aguilar <davvid@gmail.com>
Thu, 24 Sep 2015 06:09:58 +0000 (23 23:09 -0700)
committerDavid Aguilar <davvid@gmail.com>
Thu, 24 Sep 2015 06:10:26 +0000 (23 23:10 -0700)
tree42dd62753e3c8b127c79e8c3dffb199045f701e2
parent1a0a7218e970b502c1e54f2eab5e8d7e791c3cca
guicmds: offer remote and potential branches when checking out

Make it easier to checkout remote branches in a detached head by
offering completion for them in the Branch->Checkout dialog.

Offer completion for potential branches that do not exist, but would
exist if they were to be checked out using a short name that matches the
name of the same branch on the remote end.  Only unambiguous branch
names are offered in the completion.

This makes it easier to checkout new branches, and easier to checkout
remote branches in a detached state.

Closes #390
Suggested-by: David LeGare <excaliburHisSheath@gmail.com>
Helped-by: Aaron Wolf <wolftune@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/guicmds.py
share/doc/git-cola/relnotes/unreleased.rst