mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 06:17:49 +00:00
Add scripts for updating the post-XX branches
This commit is contained in:
12
scripts/merge.fish
Normal file
12
scripts/merge.fish
Normal 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
|
||||
Reference in New Issue
Block a user