git-cur-branch: script to print cur branch
authorColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Thu, 23 Aug 2012 17:53:41 +0000 (10:53 -0700)
committerColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Thu, 23 Aug 2012 17:53:58 +0000 (10:53 -0700)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

git-cur-branch.sh [new file with mode: 0755]

diff --git a/git-cur-branch.sh b/git-cur-branch.sh
new file mode 100755 (executable)
index 0000000..6fa1ebc
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+git branch | awk '/\*/ { print $2; }'