From: Colin Patrick Mccabe Date: Fri, 12 Apr 2013 18:38:19 +0000 (-0700) Subject: more efficient git-cur-branch.sh X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb81102167d568aa4b5ec32d4d2cd65bb71e8aaf;p=cmccabe-bin more efficient git-cur-branch.sh Signed-off-by: Colin McCabe --- diff --git a/git-cur-branch.sh b/git-cur-branch.sh index a3131de..1ab7fef 100755 --- a/git-cur-branch.sh +++ b/git-cur-branch.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -git branch | awk '/\*/ { print $2; }' +git rev-parse --abbrev-ref HEAD