4 CURBRANCH
=`currentbranchname`
6 CHANGEDFILES
=$
(git
diff HEAD...FETCH_HEAD |
grep "diff --git"|cut
-d" " -f3|cut
-d"/" -f2-)
8 if [ "`git rev-parse $CURBRANCH`" = "`git merge-base $CURBRANCH origin/$CURBRANCH`" ]; then
9 rebasebranch origin
/$CURBRANCH
12 if [[ $CHANGEDFILES ]]; then
13 echo "The following files have been updated:"
14 for filename
in $CHANGEDFILES; do