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 [ `git branch | grep $1.dirty` ]; then
20 git merge
$CURBRANCH.dirty
21 git branch
-D $1.dirty
26 HOOK_POST_CHANGE_BRANCH
=.
/`git rev-parse --show-cdup`.socialgit
/hooks
/post-change-branch
27 ls $HOOK_POST_CHANGE_BRANCH 2>/dev
/null
&& $HOOK_POST_CHANGE_BRANCH