mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
13 lines
315 B
Fish
13 lines
315 B
Fish
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
|