aae8fd544373274c1cdf01eff23de83e2f366e6e
[mesa.git] / bin / get-pick-list.sh
1 #!/bin/sh
2
3 git log --reverse --pretty=oneline HEAD..origin/master | cut -d' ' -f1 |\
4 while read sha
5 do
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
21 done