Skip to content

Commit

Permalink
Add tools/merge script
Browse files Browse the repository at this point in the history
  • Loading branch information
szabba committed Mar 19, 2015
1 parent 018f863 commit 50e2691
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tools/merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env sh

merged_branch=`git symbolic-ref --short -q HEAD`

git rebase master
rebase_status=$?

if [ $rebase_status != 0 ]; then
printf "Error [%d] during test rebase" $rebase_status
git rebase --abort
exit $rebase_status
fi

git checkout master
git merge --no-ff $merged_branch

0 comments on commit 50e2691

Please sign in to comment.