From 15c1bb4905b9c0762d6aa44d7a90b7ca55381f7f Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Sun, 13 Nov 2011 13:50:13 +0000 Subject: [PATCH] [internal] added dummy branch switch file --- _gs.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 _gs.sh diff --git a/_gs.sh b/_gs.sh new file mode 100755 index 00000000..4faf397f --- /dev/null +++ b/_gs.sh @@ -0,0 +1,9 @@ +#!/bin/sh +git branch | grep -q \* +if [ $? -eq 0 ]; then + git symbolic-ref HEAD refs/heads/dummy + echo "Switched to fake branch 'dummy'" +else + git symbolic-ref HEAD refs/heads/master + echo "Switched to branch 'master'" +fi