Skip to content

Commit 4f207f7

Browse files
authored
Recommend zdiff3 merge.conflictStyle (#1260)
1 parent 9c8f40e commit 4f207f7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# light = true
3333

3434
[merge]
35-
conflictstyle = diff3
35+
conflictstyle = zdiff3
3636
```
3737

3838
Delta has many features and is very customizable; please see the [user manual](https://dandavison.github.io/delta/).

manual/src/get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
# light = true
1818

1919
[merge]
20-
conflictstyle = diff3
20+
conflictstyle = zdiff3
2121
```

manual/src/merge-conflicts.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Merge conflicts
22

3-
Consider setting
3+
Consider setting [`merge.conflictStyle`](https://git-scm.com/docs/git-config#Documentation/git-config.txt-mergeconflictStyle) to `zdiff3`:
44

55
```gitconfig
66
[merge]
7-
conflictstyle = diff3
7+
conflictStyle = zdiff3
88
```
99

10-
With that setting, when a merge conflict is encountered, delta will display diffs between the ancestral commit and each of the two merge parents:
10+
With that setting, when a merge conflict is encountered, Git will display merge conflicts with the contents of the merge base as well.
11+
delta will then display this as two diffs, from the ancestor to each side of the conflict:
1112

1213
<table><tr><td><img width=500px src="https://user-images.githubusercontent.com/52205/144783121-bb549100-69d8-41b8-ac62-1704f1f7b43e.png" alt="image" /></td></tr></table>
1314

0 commit comments

Comments
 (0)