On Thu, Jan 1, 2009 at 7:28 PM, Karl Chen <quarl@cs.berkeley.edu> wrote:
The justification I've heard before is that 'git branch' is a
porcelain and thus we shouldn't rely on its output for scripting
purposes.
You might want to use 'git symbolic-ref' instead.
$ git symbolic-ref HEAD
refs/heads/master
$ git symbolic-ref HEAD | sed -e 's,refs/heads/,,'
master
--
David
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html