diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-02-23 06:43:14 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-02-23 06:43:14 +0200 |
commit | cfa4c7fba65bc4ac2b4b1b677d50c5891eb8f6b1 (patch) | |
tree | ca5d3ba9288338e03941a095a782987275ecc8da /helpers/update-branches.sh | |
parent | 6f7208768103e6d8b5149964e1a48338ea674ff7 (diff) | |
parent | 985825455031c54c78efd9e71c54833a6886a25d (diff) | |
download | egawk-cfa4c7fba65bc4ac2b4b1b677d50c5891eb8f6b1.tar.gz egawk-cfa4c7fba65bc4ac2b4b1b677d50c5891eb8f6b1.tar.bz2 egawk-cfa4c7fba65bc4ac2b4b1b677d50c5891eb8f6b1.zip |
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'helpers/update-branches.sh')
-rwxr-xr-x | helpers/update-branches.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/helpers/update-branches.sh b/helpers/update-branches.sh new file mode 100755 index 00000000..659da8b8 --- /dev/null +++ b/helpers/update-branches.sh @@ -0,0 +1,19 @@ +#! /bin/sh + +if [ ! -d .git ] +then + echo you must run this script from the top level directory + exit 1 +fi + +git checkout master || exit + +features=$(git branch -a | grep /origin/feature/ | sed 's;.*/origin/;;') +others="porting" + +for i in $others $features +do + (git checkout $i && git pull && git merge master && git push) || break +done + +git checkout master || exit |