rebase_amend
Amend the commit a rebase just applied, but only when safe. Optionally stage tracked changes so untracked files are not committed.
Instructions
Amend the commit this rebase has just applied.
Refused at every other kind of stop. At a conflicted stop the commit being replayed has not been created yet, so HEAD is still the one before it and amending would fold two commits into one -- silently, and reported by git as success.
stage_tracked stages modifications to files git already tracks. It will
not add untracked files: those are never part of what a rebase is
rewriting, and sweeping them in is how a stray binary or somebody's local
notes end up in history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | . | |
| message | No | ||
| stage_tracked | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | ||
| before | Yes | ||
| guidance | Yes |