8000 feat(rebase): record what a rebase conflict hit by dominikwozniak · Pull Request #40 · dominikwozniak/dw-mc · GitHub
[go: up one dir, main page]

Skip to content

feat(rebase): record what a rebase conflict hit - #40

Merged
dominikwozniak merged 2 commits into
mainfrom
feat/37-record-conflict-paths
Sep 17, 2026
Merged

dominikwozniak merged 2 commits into
mainfrom
feat/37-record-conflict-paths

Conversation

@dominikwozniak
Copy link
Copy Markdown
Owner

A recorded conflict said only which head it happened at, so a stale lockfile and half the pull request read the same. The record now carries the files the replay stopped on, and dw-mc rebase prints them when it aborts.

git names the files itself — git diff --name-only --diff-filter=U in the worktree — rather than being read out of its prose. They are read while the conflict is still there: the abort puts the branch back and takes the stopped replay's index with it, so after it there is nothing left to list. A listing that refuses is no reason to leave a rebase standing, so it is swallowed and the conflict is recorded with no paths.

The record stays head-scoped: a branch that moved is a branch nothing here has tried to rebase yet. paths is an optional key, so a record an older version wrote still reads and still puts the pull request in Needs me — the bucket asks the head and nothing else.

The replay's own result is a tagged shape now instead of a null for success and an array for a conflict, which read backwards at the call site.

Closes #37

🤖 Generated with Claude Code

dominikwozniak and others added 2 commits September 17, 2026 09:42
A conflict said only which head it happened at, which cannot tell a stale
lockfile from half the pull request. git names the unmerged files itself,
read before the abort because the abort takes them with it, so the record
carries them beside the head and the command prints them. The paths are an
optional key, so a record an older version wrote still puts the pull
request in Needs me.

Closes #37

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The replay returned null where it went through and an array of paths where
it stopped, so the call site read backwards: the array was the failure and
null the success. It now returns the same tagged shape the rebase itself
reports, which the caller hands straight on.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dominikwozniak
dominikwozniak merged commit a45c314 into main Sep 17, 2026
1 check passed
@dominikwozniak
dominikwozniak deleted the feat/37-record-conflict-paths branch September 17, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Record what a rebase conflict hit

1 participant

0