fuel-octane/misc/all-in-one.sh
Yuriy Taraday 8de33f0b7c Add all-in-one.sh script for creating all in one commits in Gerrit
Change-Id: I90a692852dae1219093beeb8a17fadc61c8dd7a0
2015-09-07 15:36:29 +03:00

10 lines
279 B
Bash
Executable File

#!/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