Ian Romanick | 2d95db6 | 2012-10-19 22:30:53 +0200 | [diff] [blame^] | 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 |