Add scripts for updating the post-XX branches

This commit is contained in:
Philipp Oppermann
2019-02-25 18:59:11 +01:00
parent c1428d92d5
commit 4fc9f569e2
2 changed files with 23 additions and 0 deletions

12
scripts/merge.fish Normal file
View File

@@ -0,0 +1,12 @@
set original (git rev-parse --abbrev-ref HEAD)
for x in (seq 99)
set previous (printf "post-%02i" $x)
set current (printf "post-%02i" (math $x + 1))
if not git checkout $current --quiet
break
end
if not git merge $previous --no-edit
break
end
end
git checkout $original --quiet

11
scripts/push.fish Normal file
View File

@@ -0,0 +1,11 @@
set original (git rev-parse --abbrev-ref HEAD)
set list
for x in (seq 99)
set current (printf "post-%02i" $x)
if not git checkout $current --quiet
break
end
set list $list $current
end
git push origin $list
git checkout $original --quiet