Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get-pick-list.sh 1.0KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. # Script for generating a list of candidates for cherry-picking to a stable branch
  3. #
  4. # Usage examples:
  5. #
  6. # $ bin/get-pick-list.sh
  7. # $ bin/get-pick-list.sh > picklist
  8. # $ bin/get-pick-list.sh | tee picklist
  9. # Grep for commits with "cherry picked from commit" in the commit message.
  10. git log --reverse --grep="cherry picked from commit" origin/master..HEAD |\
  11. grep "cherry picked from commit" |\
  12. sed -e 's/^[[:space:]]*(cherry picked from commit[[:space:]]*//' -e 's/)//' > already_picked
  13. # Grep for commits that were marked as a candidate for the stable tree.
  14. git log --reverse --pretty=%H -i --grep='^\([[:space:]]*NOTE: .*[Cc]andidate\|CC:[[:space:]]*mesa-stable\)' HEAD..origin/master |\
  15. while read sha
  16. do
  17. # Check to see whether the patch is on the ignore list.
  18. if [ -f bin/.cherry-ignore ] ; then
  19. if grep -q ^$sha bin/.cherry-ignore ; then
  20. continue
  21. fi
  22. fi
  23. # Check to see if it has already been picked over.
  24. if grep -q ^$sha already_picked ; then
  25. continue
  26. fi
  27. git log -n1 --pretty=oneline $sha | cat
  28. done
  29. rm -f already_picked