upstream-patches
Installation
SKILL.md
Upstream Patches
upstream/ is a git submodule pointing to the upstream Terraform provider. patches/ contains patch files applied on top of it. Use ./scripts/upstream.sh to manage patch state.
Default Behavior
- If fixing a regression introduced by an existing patch, amend the owning patch commit.
- Do not create a new patch unless the user explicitly asks.
Commands Reference
| Command | Description |
|---|---|
./scripts/upstream.sh init |
Initialize upstream and apply patches to working directory |
./scripts/upstream.sh init -f |
Force re-initialize, discarding any changes |
./scripts/upstream.sh checkout |
Create branch with patches as commits for editing |
./scripts/upstream.sh rebase -i |
Interactively edit patch commits |
./scripts/upstream.sh rebase -o <commit> |
Rebase patches onto a new upstream commit |
./scripts/upstream.sh check_in |
Write commits back to patches and exit checkout mode |