rebase_resolve
Stage resolved content for a conflicted path during a git rebase, using predefined conflict resolutions or custom content, ensuring no conflict markers remain.
Instructions
Stage the resolved content for one conflicted path.
Three ways, in rough order of how much they cost to use:
take="both","branch"or"replaying"resolves every conflict block in the file the stated way. "both" keeps the branch's lines then the replayed commit's, which is what two insertions at the same point almost always mean. Cheapest, and it cannot introduce a typo.no arguments stages what is already in the working tree, for a file large enough that sending it back costs more than editing it in place.
contentwrites the finished file and stages it.
Every route refuses content that still contains conflict markers. Staging
one is how a commit ends up with <<<<<<< in it, and nothing downstream
catches that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| repo | No | . | |
| take | No | ||
| content | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| guidance | Yes | ||
| still_conflicted | Yes |