4 CURBRANCH
=`currentbranchname`
6 if (( $
(git
diff HEAD |
wc -l) > 0 )); then
7 git branch
$CURBRANCH.dirty
8 git checkout
$CURBRANCH.dirty
9 echo "stashing dirty working copy" | git commit
-a -F -
13 git checkout
-b $1 origin
/$1
16 if [ `git branch | grep $1.dirty` ]; then
17 git
diff $1 $1.dirty | git apply
18 git branch
-D $1.dirty