blob: 3920a9baafffc400105a8dc3aac7512c9dce15fa [file] [log] [blame]
Ian Romanick2d95db62012-10-19 22:30:53 +02001#!/bin/sh
2
Andreas Bollfa27a0d2012-10-19 22:54:56 +02003# Script for generating a list of candidates for cherry-picking to a stable branch
4
Andreas Bollb2991522012-10-19 23:00:17 +02005# Grep for commits that were marked as a candidate for the stable tree.
6git log --reverse --pretty=%H -i --grep='^[[:space:]]*NOTE: This is a candidate' HEAD..origin/master |\
Ian Romanick2d95db62012-10-19 22:30:53 +02007while read sha
8do
Andreas Bollb2991522012-10-19 23:00:17 +02009 # Check to see whether the patch is on the ignore list.
Ian Romanick2d95db62012-10-19 22:30:53 +020010 if [ -f .git/cherry-ignore ] ; then
11 if grep -q ^$sha .git/cherry-ignore ; then
12 continue
13 fi
14 fi
15
16 # Check to see if it has already been picked over.
17 if git log origin/master..HEAD | grep -q "cherry picked from commit $sha"; then
18 continue
19 fi
20
21 git log -n1 --pretty=oneline $sha | cat
Ian Romanick2d95db62012-10-19 22:30:53 +020022done