From eb81102167d568aa4b5ec32d4d2cd65bb71e8aaf Mon Sep 17 00:00:00 2001 From: Colin Patrick Mccabe Date: Fri, 12 Apr 2013 11:38:19 -0700 Subject: [PATCH] more efficient git-cur-branch.sh Signed-off-by: Colin McCabe --- git-cur-branch.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.6.6.rc1.39.g9a42