1
1
# vim-diffconflicts
2
2
3
- A better Vimdiff Git (and Mercurial) mergetool
3
+ A better Vimdiff mergetool.
4
4
5
5
tl;dr:
6
6
7
7
* Call ` :DiffConflicts ` to convert a file containing conflict markers into
8
8
a two-way diff.
9
- * Install as a Git mergetool to do that automatically. (See
9
+ * Install as a Git or Mercurial mergetool to do that automatically. (See
10
10
[ Installation] ( #installation ) below.)
11
11
12
12
## Why?
@@ -15,6 +15,13 @@ Watch a demonstration version of this README on YouTube:
15
15
16
16
[ ![ diffconflicts Video Demonstration] ( https://img.youtube.com/vi/Pxgl3Wtf78Y/0.jpg )] ( https://www.youtube.com/watch?v=Pxgl3Wtf78Y )
17
17
18
+ Contents:
19
+
20
+ * [ Three-Way Diffs are Hard] ( #three-way-diffs-are-hard )
21
+ * [ Editing-Conflict-Markers-is-Hard] ( #editing-conflict-markers-is-hard )
22
+ * [ Two-Way Diffs are Eas(ier)] ( #two-way-diffs-are-easier )
23
+ * [ Conflict-Markers ** are** a Two-Way Diff] ( #conflict-markers-are-a-two-way-diff )
24
+
18
25
### Three-Way Diffs are Hard
19
26
20
27
When Git cannot automatically resolve conflicts it writes a file with conflict
@@ -52,16 +59,16 @@ Vimdiff is well suited to two-way diffs:
52
59
53
60
![ ] ( ./_utils/vim-diffconflicts.png )
54
61
55
- ### Conflict-Markers are a Two-Way Diff
62
+ ### Conflict-Markers ** are** a Two-Way Diff
56
63
57
64
Git does an admirable job of automatically resolving conflicts. We want to
58
65
retain all the work and resolve only the things that Git could not. That work
59
- is reflected in the files containing conflict markers, but it is not reflected
60
- in a two-way diff between LOCAL and REMOTE.
66
+ _ ** is ** _ reflected in the files containing conflict markers, but it _ ** is
67
+ not ** _ reflected in a two-way diff between LOCAL and REMOTE.
61
68
62
- Rather than editing the conflict markers directly, it is better to perform a
63
- two-way diff on just the "left" and "right" sides of the conflict markers by
64
- splitting them apart.
69
+ Rather than editing the conflict markers directly, it is better to perform
70
+ a two-way diff on _ ** only ** _ the "left" and "right" sides of the conflict
71
+ markers by splitting them apart.
65
72
66
73
## Installation
67
74
0 commit comments