Add all-in-one.sh script for creating all in one commits in Gerrit

Change-Id: I90a692852dae1219093beeb8a17fadc61c8dd7a0
This commit is contained in:
Yuriy Taraday 2015-09-07 15:36:18 +03:00
parent ae6e605a33
commit 8de33f0b7c
1 changed files with 9 additions and 0 deletions

9
misc/all-in-one.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh -ex
FROM="${1:-origin/master}"
TO="${2:-gerrit/master}"
CHANGE_ID="I9b01715ce955d695fe6334bdec62545d101f4f38"
git review -s
COMMIT="$(git commit-tree -p "$TO" -m "All-in-one from GitHub
Change-Id: $CHANGE_ID" "$FROM^{tree}")"
git push gerrit "$COMMIT":refs/for/master