#!/bin/sh BRANCH="$1" TEXT_OUT="$2" PWD=`pwd` REPO=`basename $PWD` echo "Please pull from '$BRANCH' branch of" > $TEXT_OUT echo "master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/$REPO.git $BRANCH" \ >> $TEXT_OUT echo "" >> $TEXT_OUT echo "to receive the following updates:" >> $TEXT_OUT echo "" >> $TEXT_OUT git diff master..$BRANCH | diffstat -p1 >> $TEXT_OUT echo "" >> $TEXT_OUT git log --no-merges master..$BRANCH | git shortlog >> $TEXT_OUT git diff master..$BRANCH >> $TEXT_OUT