more efficient git-cur-branch.sh
authorColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Fri, 12 Apr 2013 18:38:19 +0000 (11:38 -0700)
committerColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Fri, 12 Apr 2013 18:38:19 +0000 (11:38 -0700)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

git-cur-branch.sh

index a3131de..1ab7fef 100755 (executable)
@@ -1,3 +1,3 @@
 #!/usr/bin/env bash
 
-git branch | awk '/\*/ { print $2; }'
+git rev-parse --abbrev-ref HEAD