4 CURBRANCH
=`currentbranchname`
5 if [ "$CURBRANCH" = "$1" ]; then
9 if (( $
(git
diff HEAD |
wc -l) > 0 )); then
10 git branch
$CURBRANCH.dirty
11 git checkout
$CURBRANCH.dirty
12 echo "stashing dirty working copy" | git commit
-a -F -
16 git checkout
-b $1 origin
/$1
19 if [ "$?" = "0" ]; then
21 if [ "$(git branch | grep $1.dirty)" != "" ]; then
23 git branch
-D $1.dirty
28 HOOK_POST_CHANGE_BRANCH
=.
/`git rev-parse --show-cdup`.socialgit
/hooks
/post-change-branch
29 ls $HOOK_POST_CHANGE_BRANCH 2>/dev
/null
&& $HOOK_POST_CHANGE_BRANCH