[internal] added dummy branch switch file

This commit is contained in:
Pete Batard 2011-11-13 13:50:13 +00:00
commit 15c1bb4905
1 changed files with 9 additions and 0 deletions

9
_gs.sh Executable file
View File

@ -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