barn/gopen — pull request #1 by unixorn (2014-09-22 23:16:06+00:00)
Title: Current branch can be obtained cleanly with git symbolic-ref

No need to use awk. I found the symbolic-ref usage the other day for one of my own helper scripts.