FAQ
this is what i've been using as git-release-apply. we can add it to the
codereview command later. it takes hashes or CL numbers.

#!/bin/bash

if [ $# = 0 ]; then
echo 'usage: git release-apply hash...' >&2
exit 2
fi

set -e
for i
do
echo '>>>' "$i"
case "$i" in
[0-9][0-9][0-9][0-9] | [0-9][0-9][0-9][0-9][0-9])
x=$(git log --grep go-review.googlesource.com/$i origin/master | awk
'/^commit / {print substr($2, 1, 7)}')
if [ "$x" = "" ]; then
echo "unknown commit $i" >&2
exit 2
fi
echo "$i => $x"
i=$x
esac

git cherry-pick -x "$i"
GIT_EDITOR=: git commit --amend # run commit msg hook to add release branch
prefix
done

--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedJan 14, '15 at 6:26a
activeJan 14, '15 at 6:26a
posts1
users1
websitegolang.org

1 user in discussion

Russ Cox: 1 post

People

Translate

site design / logo © 2021 Grokbase