Files
heartwood/scripts/patch-rebase.sh
T
Lorenz Leutgeb c7d71df4ab scripts, build, just: POSIX Compliance
Enforce POSIX shell syntax with ShellCheck using `--shell sh`.
2026-10-30 12:45:40 +01:00

13 lines
238 B
Bash
Executable File

#! /usr/bin/env sh
set -e
if [ "$#" -lt 1 ]; then
printf "usage: %s <patch-id>\n" "$(basename "$0")"
exit 1
fi
rad patch checkout "$1"
git rebase main --autosquash
rad patch update "$1" --message "Rebased on main"
git checkout main