3d76e16...b52f40e

commit b52f40e6bb736069c945dd0028b39f39722ad0f5
Author: Joonas Rikkonen <poe.regalis@gmail.com>
Date:   Tue Mar 19 11:33:57 2019 +0200

    Fixed non-radio chat/VOIP having an unlimited distance. Closes #1291

commit 5e3bafed4528d36dd05968300aa01531377355f8
Author: Joonas Rikkonen <poe.regalis@gmail.com>
Date:   Tue Mar 19 00:19:11 2019 +0200

    Modifications to the private->public merge script
This commit is contained in:
Joonas Rikkonen
2019-03-19 11:40:19 +02:00
parent ab06d6fd6e
commit bfa6a093c4
3 changed files with 22 additions and 9 deletions

View File

@@ -120,8 +120,21 @@ gitbranch() {
original=$(gitbranch HEAD)
branchsha=$(gitsha "$branch")
branchshortsha="${branchsha:0:7}"
logmsg="$(git log .."$branchsha")"
#get the hash of the last merged remote commit from the latest commit msg in this repo
#assumes that the commit message starts with hash1...hash2
prevcommitmsg="$(git log -1 --pretty=%B)"
prevcommitsha="${prevcommitmsg:10:7}"
#create a commit message for out new "merge commit"
# hash1...hash2 + logs of the merged commits
logmsg="$prevcommitsha"
logmsg+="..."
logmsg+="$branchshortsha"
logmsg+="
$(git log "$prevcommitsha"..."$branchsha")"
trap 'git checkout --quiet "$original"' EXIT
@@ -130,11 +143,10 @@ git rm -rf -r "${files[@]}" "${quiet[@]}" &&
git commit -m "$msgcommit" "${quiet[@]}" &&
newsha=$(gitsha HEAD) &&
git checkout "$original" "${quiet[@]}" &&
#original
#git merge -m "$msgmerge" "${mergeopts[@]}" "$newsha"
#baro additions
git merge -m "$msgmerge" "--squash" "$newsha"
git merge -m "$msgmerge" -X theirs "--squash" "$newsha"
git checkout HEAD .gitignore
git commit -m "$logmsg"
#./git-strip-merge --no-commit --no-ff barotrauma-development/dev -f Barotrauma/BarotraumaShared/Content/*
#example usage
#./git-strip-merge barotrauma-development/dev -f Barotrauma/BarotraumaShared/Content/*