Skip to content

docs: Add zdiff3 concept article - #96

Merged
Ziinc merged 4 commits into
mainfrom
cursor/zdiff3-article-6440
Jul 27, 2026
Merged

docs: Add zdiff3 concept article#96
Ziinc merged 4 commits into
mainfrom
cursor/zdiff3-article-6440

Conversation

@Ziinc

@Ziinc Ziinc commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a learn concept article on Git's zdiff3 (Zealous Diff3) conflict style under web/learn/concepts/git/, and links it from the Git concepts index.
The article covers:

  • How merge, diff3, and zdiff3 present the same conflict differently
  • Enabling zdiff3 globally, per-repo, or for one conflicted file via git restore --conflict
  • A side-by-side example of the three marker layouts
  • When to prefer each style, rebase ours/theirs labeling, and marker-parsing caveats for bots

Accuracy fixes

Addressed review findings before publish:

  • Softened the "minimal divergent core" claim: zdiff3 often narrows edge matches, it does not guarantee a globally minimal conflict
  • Corrected the comparison table so default merge is described as already able to move matching edge lines outside
  • Replaced "how much history Git prints" with hunk presentation / working-tree writing wording
  • Switched regenerate example to git restore --conflict=zdiff3 and warned that it overwrites working-tree edits
  • Documented the rebase ours/theirs swap
  • Noted configurable conflict-marker-size
  • Linked Git manuals for merge.conflictStyle, git rebase, git restore, and gitattributes

Writing and interlinking audit

Rebased onto latest main (including the new rerere article). Ran /writing and /audit-interlinking:

Check Result
Readability (--strict) Pass (Flesch ~61, no hard bans or AI tells)
Broken links 0
zdiff3 orphan / thin Fixed

Test plan

  • Confirm the page renders at /learn/concepts/git/zdiff3
  • Confirm source links to git-scm.com open correctly
  • Spot-check the corrected table against the worked example
  • python3 .claude/skills/writing/scripts/readability.py web/learn/concepts/git/zdiff3.mdx --strict
Open in Web Open in Cursor 

@github-actions github-actions Bot changed the title Add zdiff3 concept article docs: Add zdiff3 concept article Jul 22, 2026
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@cursor
cursor Bot force-pushed the cursor/zdiff3-article-6440 branch from 01ab650 to edee1c0 Compare July 27, 2026 11:31
@Ziinc
Ziinc marked this pull request as ready for review July 27, 2026 19:08
cursoragent and others added 4 commits July 27, 2026 19:09
Document merge, diff3, and zdiff3 conflict presentation so readers can
enable zealous Diff3 and interpret three-way conflict markers.

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Shorten the conflict comparison setup line for clearer prose.

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Rebased on main, confirmed the article passes the writing checker, and
wired inbound/outbound links so zdiff3 is no longer orphaned or thin.

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Correct the minimal-conflict overclaim and merge-style table, warn that
regenerating conflicts overwrites edits, document the rebase ours/theirs
swap, and cite the Git manuals for conflictStyle, restore, and markers.

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/zdiff3-article-6440 branch from 4acd14e to 89c8f39 Compare July 27, 2026 19:12
@Ziinc
Ziinc merged commit e86889d into main Jul 27, 2026
10 checks passed
@Ziinc
Ziinc deleted the cursor/zdiff3-article-6440 branch July 27, 2026 19:20
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.

2 participants