Skip to content

Instantly share code, notes, and snippets.

@kklimonda
Created September 1, 2017 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kklimonda/6bbcf849dfdc3a77648fef4b9a4c7f71 to your computer and use it in GitHub Desktop.
Save kklimonda/6bbcf849dfdc3a77648fef4b9a4c7f71 to your computer and use it in GitHub Desktop.
CONTROLLER_PATCHSETS="
34917
34918
34919
34920
34924
34986
35098
"
BUILD_PATCHSETS="
34915
34916
"
cd controller/
for patchset in $CONTROLLER_PATCHSETS; do
hash=$(git ls-remote gerrit | egrep "refs/changes/.*$patchset.*/" | tail -1 | awk '{print $1}')
git cherry-pick $hash
done
cd ../
cd tools/build/
for patchset in $BUILD_PATCHSETS; do
hash=$(git ls-remote gerrit | egrep "refs/changes/.*$patchset.*/" | tail -1 | awk '{print $1}')
git cherry-pick $hash
done
cd ../
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment