blob: aae8fd544373274c1cdf01eff23de83e2f366e6e [file] [log] [blame]
Ian Romanick2d95db62012-10-19 22:30:53 +02001#!/bin/sh
2
3git log --reverse --pretty=oneline HEAD..origin/master | cut -d' ' -f1 |\
4while read sha
5do
6 # Check to see whether the patch was marked as a candidate for the stable tree.
7 if git log -n1 $sha | grep -iq '^[[:space:]]*NOTE: This is a candidate' ; then
8 if [ -f .git/cherry-ignore ] ; then
9 if grep -q ^$sha .git/cherry-ignore ; then
10 continue
11 fi
12 fi
13
14 # Check to see if it has already been picked over.
15 if git log origin/master..HEAD | grep -q "cherry picked from commit $sha"; then
16 continue
17 fi
18
19 git log -n1 --pretty=oneline $sha | cat
20 fi
21done