git branch outputs a list of branches, but also outputs other human-oriented fluff such as an asterisk (*) beside the current branch.
$ git branch
* (HEAD detached at origin/master)
branch_foo
some/branch_bar
How do I get a more machine parsable output (e.g. just the name of branches) for scripting use etc.?