projects
/
cmccabe-bin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
cbcac73
)
more efficient git-cur-branch.sh
author
Colin Patrick Mccabe
<cmccabe@alumni.cmu.edu>
Fri, 12 Apr 2013 18:38:19 +0000 (11:38 -0700)
committer
Colin 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
patch
|
blob
|
history
diff --git
a/git-cur-branch.sh
b/git-cur-branch.sh
index
a3131de
..
1ab7fef
100755
(executable)
--- 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