Implement is_on_branch with pygit2
Show a better error message when you're not on a branch & pull.

Rather than just saying "branch has 0 local changes", it will now say that
you're not on a branch.