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!