Skip to content

feat: diff3-style three-way conflict output in .rej files#28

Merged
raiderrobert merged 1 commit into
mainfrom
feat/diff3-conflict-format
Feb 13, 2026
Merged

feat: diff3-style three-way conflict output in .rej files#28
raiderrobert merged 1 commit into
mainfrom
feat/diff3-conflict-format

Conversation

@raiderrobert

Copy link
Copy Markdown
Owner

Summary

  • Enhanced apply_merge() conflict output to include all three file versions (base, user, new template) in .rej files
  • Added both unified diffs (base→new and user→new) for easier conflict resolution
  • Two-way conflicts (no base version) continue to show user vs template with diff

Test plan

  • Existing merge conflict tests pass (104 tests total)
  • cargo fmt --check clean
  • cargo clippy -- -D warnings clean

When a merge conflict is detected in apply_merge(), the .rej file now
includes all three versions (base, user, new template) along with both
unified diffs, making it easier to resolve conflicts manually.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying diecut with  Cloudflare Pages  Cloudflare Pages

Latest commit: 39e87f8
Status: ✅  Deploy successful!
Preview URL: https://1bc17b43.diecut.pages.dev
Branch Preview URL: https://feat-diff3-conflict-format.diecut.pages.dev

View logs

@raiderrobert raiderrobert merged commit 4fd4e3b into main Feb 13, 2026
4 checks passed
@raiderrobert raiderrobert deleted the feat/diff3-conflict-format branch February 13, 2026 15:25
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.

1 participant