magit/magit — pull request #506 by kidd (2012-11-20 01:20:39+00:00)
Title: Default branch to the latest visited branch

when point is not into a commit/branch, suggest last visited branch as branch name (useful for merges,rebases,checkouts, etc)

If you think an auxiliary function would be better, please say so, and I'll change it.

Thanks!