#!/bin/bash MAINTAINER="Eric Sandeen " IFS=$(echo -en "\n\b") for PATCH in `guilt applied -c`; do COMMIT=`echo $PATCH | awk '{print $1}'` FILENAME=`echo $PATCH | awk '{print $2}'` SUBJECT=`git show --pretty=format:%s $COMMIT | head -n 1` AUTHOR=`git show $COMMIT | grep ^Author | awk -F": " '{print $2}'` AUTHOR_SOB=`git show $COMMIT | grep -i Signed-off-by: | head -n 1 | awk -F": " '{print $2}'` COMMITTER_SOB=`git show $COMMIT | grep -i Signed-off-by: | tail -n 1 | awk -F": " '{print $2}'` REVIEWED_BY=`git show $COMMIT | grep -i Reviewed-by: | tail -n 1 | awk -F": " '{print $2}'` echo -n "PATCH: $PATCH" # Check for double spaces in subject if [[ "$SUBJECT" == *" "* ]]; then DOUBLE="true" else DOUBLE="false" fi if [ "$REVIEWED_BY" != "" -a \ "$AUTHOR" == "$AUTHOR_SOB" -a \ "$COMMITTER_SOB" == "$MAINTAINER" -a \ "$DOUBLE" == "false" ]; then echo " - OK" else echo fi if [[ "$SUBJECT" == *" "* ]]; then echo " double spaces in: $SUBJECT" fi if [ "$REVIEWED_BY" == "" ]; then echo " no Reviewed-by:" fi if [ "$AUTHOR" != "$AUTHOR_SOB" ]; then echo " author $AUTHOR sob $AUTHOR_SOB" fi if [ "$COMMITTER_SOB" != "$MAINTAINER" ]; then echo " committer $COMMITTER_SOB maintainer $MAINTAINER" fi done [root@intel-lizardhead-04 ~]# cat /usr/local/bin/xfsprogs-summary.sh #!/bin/bash cat << EOF Hi folks, The xfsprogs repository at: git://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git has just been updated. Patches often get missed, so please check if your outstanding patches were in this update. If they have not been in this update, please resubmit them to linux-xfs@vger.kernel.org so they can be picked up in the next update. The new head of the master branch is commit: EOF git log --oneline -n 1 $* #v6.4.0 echo echo New Commits: echo git shortlog --format="[%h] %s" $* echo echo Code Diffstat: echo git diff --stat --summary -C -M $*