Generated File: Do Not Edit Directly
Edit the source files and rerun the generator.
#!/usr/bin/env bash
# Bash Strict Mode: https://github.com/guettli/bash-strict-mode
trap 'echo -e "\nš¤· šØ š„ Warning: A command has failed. Exiting the script. Line was ($0:$LINENO): $(sed -n "${LINENO}p" "$0" 2>/dev/null || true) š„ šØ š¤· "; exit 3' ERR
set -Eeuo pipefail
usage() {
cat <<EOF
Usage: $(basename "$0")
Merge the current PR/MR base branch into the current branch.
Runs:
go run github.com/guettli/sync-branch@latest sync
Options:
-h, --help Show this help
EOF
}
while [[ $# -gt 0 ]]; do
case "$1" in
-h | --help)
usage
exit 0
;;
*)
echo "Error: Unknown argument '$1'"
usage
exit 1
;;
esac
done
go run github.com/guettli/sync-branch@latest sync
Generated File: Do Not Edit Directly
Edit the source files and rerun the generator.