Skip to content

Commit

Permalink
test merge script
Browse files Browse the repository at this point in the history
  • Loading branch information
mneunomne committed Apr 27, 2023
1 parent 56101d8 commit 088fa81
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions tools/merge-ublock-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
VERSION=$1
if [[ -z $(git status -s) ]]
then
echo "Merging to uBlock $VERSION"
git fetch --all --tags --prune
git checkout tags/$VERSION
git checkout -b upstream$VERSION
git checkout master
git checkout -b merge$VERSION
git merge upstream$VERSION
else
echo "There are uncommited changes, make sure you commit them before starting your merge"
fi
BRANCH=${2:-master}
echo "Merging to AdNauseam $VERSION on branch $BRANCH"
# if [[ -z $(git status -s) ]]
# then
# echo "Merging to uBlock $VERSION"
# git fetch --all --tags --prune
# git checkout tags/$VERSION
# git checkout -b upstream$VERSION
git checkout "$BRANCH"
# git checkout -b merge$VERSION
# git merge upstream$VERSION
# else
# echo "There are uncommited changes, make sure you commit them before starting your merge"
# fi
fi

0 comments on commit 088fa81

Please sign in to comment.