holman/dotfiles — pull request #23 by prathe (2012-02-21 20:28:08+00:00)
Title: Enhance unpushed by using upstream instead of trying to guess it.

Looks like git has a shortcut to reference the upstream.

I was trying to make it better by getting both the remote and the merge ref from the config.

But this solution is sweet.