Repository navigation
feat(rebase): record what a rebase conflict hit - #40
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 rebaseprints them when it aborts.gitnames the files itself —git diff --name-only --diff-filter=Uin 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.
pathsis 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