diff options
author | hut <hut@lavabit.com> | 2010-02-04 02:51:17 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-02-04 02:51:22 +0100 |
commit | 3eca1d01dae7efce97eb69af6e3d1f78ab31d1df (patch) | |
tree | cb73659ea0e3faa32f4f2c9ccd52425517c9cb85 | |
parent | 8111b8e97219ef289b25a296a2775c8975b01dc9 (diff) | |
download | ranger-3eca1d01dae7efce97eb69af6e3d1f78ab31d1df.tar.gz |
pick.sh: added variables for easier customization
-rwxr-xr-x | doc/pick.sh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/pick.sh b/doc/pick.sh index fb9da83b..baa41c46 100755 --- a/doc/pick.sh +++ b/doc/pick.sh @@ -8,17 +8,18 @@ # Bad commits are marked with a "custom:" at the beginning # of the commit message. -BRANCH=`git branch 2>/dev/null|grep -e ^* | tr -d \*\ ` +MASTER_BRANCH='master' +CUSTOM_BRANCH='hut' +ORIGINAL_BRANCH=`git branch 2>/dev/null|grep -e ^* | tr -d \*\ ` -git checkout master +git checkout $MASTER_BRANCH while read -r hash tag rest; do if [ $tag != 'custom:' ]; then git cherry-pick $hash || exit 1 fi -done < <(git log --oneline --no-color master..hut) +done < <(git log --oneline --no-color $MASTER_BRANCH..$CUSTOM_BRANCH) -git checkout hut -git rebase master - -git checkout $BRANCH +git checkout $CUSTOM_BRANCH +git rebase $MASTER_BRANCH +git checkout $ORIGINAL_BRANCH |