File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,6 +143,24 @@ options:
143143 ``PyGitUp `` will show the hashes of the current commit (or the point
144144 where the rebase starts) and the target commit like ``git pull `` does.
145145
146+ - ``git-up.rebase.conflict-resolver [cmd] ``: If set, ``PyGitUp `` will
147+ invoke this command when a rebase conflict occurs. The command should
148+ contain a ``{prompt} `` placeholder, which will be replaced with a
149+ shell-escaped prompt containing conflict context (branch names,
150+ conflicted files, and resolution steps). The command is expected to
151+ resolve all conflicts, stage the files, and run
152+ ``git rebase --continue ``. If it exits with code 0 and the rebase is
153+ complete, ``git up `` continues to the next branch. If it fails, the
154+ repo is left in the conflicted state for manual resolution.
155+
156+ Environment variables ``GITUP_BRANCH ``, ``GITUP_TARGET ``, and
157+ ``GITUP_REPO_PATH `` are also set for the resolver process.
158+
159+ Examples::
160+
161+ git config git-up.rebase.conflict-resolver "claude -p {prompt}"
162+ git config git-up.rebase.conflict-resolver "aider --message {prompt}"
163+
146164New in v1.0.0:
147165~~~~~~~~~~~~~~
148166
You can’t perform that action at this time.
0 commit comments