Skip to content

Commit f8e4203

Browse files
committed
explain merge patches
1 parent 1eb0d1f commit f8e4203

File tree

1 file changed

+59
-5
lines changed

1 file changed

+59
-5
lines changed

docs/reconciliation.md

Lines changed: 59 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,67 @@ When reviewing a patch:
9696

9797
## Conflict Resolution
9898

99-
When the same line changed in both documents:
99+
When the same lines are modified in both documents, Korppi detects a **conflict**. You have two approaches to resolve them:
100100

101-
1. Korppi detects the conflict
102-
2. All versions are shown
103-
3. You choose which to keep (or edit manually)
101+
### Simple Approach: Accept or Reject
104102

105-
---
103+
For straightforward conflicts:
104+
105+
1. Click the conflicting patch in the timeline
106+
2. Review the diff preview
107+
3. Click **Accept** or **Reject**
108+
109+
If you accept, the patch's content replaces what's in your document.
110+
111+
### Advanced Approach: Merge Wizard
112+
113+
For complex conflicts or when you want to combine changes from multiple patches:
114+
115+
1. Click the conflicting patch in the timeline
116+
2. Go to the **Conflicts** tab in the preview
117+
3. Click **Resolve Conflict** to open the Merge Wizard
118+
119+
The wizard guides you through:
120+
121+
1. **Zone Detection** - Korppi breaks down conflicts into independent zones (sections of the document that can be resolved separately)
122+
2. **Zone Resolution** - For each zone, you see both versions and can:
123+
- Choose one version entirely
124+
- Manually edit to combine both
125+
- Use the conflict markers to pick line-by-line
126+
127+
### Understanding Conflict Markers
128+
129+
In the zone editor, conflicts appear as:
130+
131+
```
132+
╔══════ Author A
133+
Content from first patch
134+
╠══════
135+
Content from second patch
136+
╚══════ Author B
137+
```
138+
139+
You can:
140+
- Delete everything except the version you want
141+
- Edit the content to merge both manually
142+
- Use the quick-resolve buttons to pick a version
143+
144+
### After Resolution
145+
146+
When you complete the merge:
147+
148+
- A new **Merge Patch** is created with your resolved content
149+
- Source patches are marked as **accepted** (and move to the accepted filter)
150+
- Your document is updated with the merged result
151+
152+
### When to Use the Merge Wizard
153+
154+
| Scenario | Recommended Approach |
155+
|----------|---------------------|
156+
| Simple text change | Accept/Reject |
157+
| Multiple authors edited same section | Merge Wizard |
158+
| Want to combine parts from both versions | Merge Wizard |
159+
| Many overlapping patches | Merge Wizard |
106160

107161
## Line-Based Review
108162

0 commit comments

Comments
 (0)