4 CURBRANCH
=`currentbranchname`
6 MESSAGE
=$
(ls .mergefrommastermessage
2>/dev
/null
&& cat .mergefrommastermessage
)
7 if ( test $MESSAGE ); then
9 rm .mergefrommastermessage
15 changebranch
$CURBRANCH
16 MESSAGE
="Pulling $(git rev-list --reverse $CURBRANCH..master | wc -l | cut -d" " -f8) commits from 'master' to '$CURBRANCH'.
18 for commitid
in `git rev-list --reverse $CURBRANCH..master`; do
20 $(git log -1 --pretty=format:'%s (%cD by %cn <%ce>)' $commitid)";
22 git merge
-m "$MESSAGE" master
23 if ( git merge master|
grep "You are in the middle of a conflicted merge." ); then
24 GITROOT
=$PWD/`git rev-parse --show-cdup`
25 echo $MESSAGE > .mergefrommastermessage
26 echo "Need to resolve conflicts from merging in master changes before continuing with a git-commit."