Skip to content

Commit 4209752

Browse files
committed
user-manual: describe how higher stages are set during a merge
Higher stages store the blobs involved from their side verbatim. Removal of uninteresting hunks are done by "diff --cc" upon demand and not stored in the index. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9501fc8 commit 4209752

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Documentation/user-manual.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,16 +1254,15 @@ these three "file stages" represents a different version of the file:
12541254

12551255
-------------------------------------------------
12561256
$ git show :1:file.txt # the file in a common ancestor of both branches
1257-
$ git show :2:file.txt # the version from HEAD, but including any
1258-
# nonconflicting changes from MERGE_HEAD
1259-
$ git show :3:file.txt # the version from MERGE_HEAD, but including any
1260-
# nonconflicting changes from HEAD.
1257+
$ git show :2:file.txt # the version from HEAD.
1258+
$ git show :3:file.txt # the version from MERGE_HEAD.
12611259
-------------------------------------------------
12621260

1263-
Since the stage 2 and stage 3 versions have already been updated with
1264-
nonconflicting changes, the only remaining differences between them are
1265-
the important ones; thus linkgit:git-diff[1] can use the information in
1266-
the index to show only those conflicts.
1261+
When you ask linkgit:git-diff[1] to show the conflicts, it runs a
1262+
three-way diff between the conflicted merge results in the work tree with
1263+
stages 2 and 3 to show only hunks whose contents come from both sides,
1264+
mixed (in other words, when a hunk's merge results come only from stage 2,
1265+
that part is not conflicting and is not shown. Same for stage 3).
12671266

12681267
The diff above shows the differences between the working-tree version of
12691268
file.txt and the stage 2 and stage 3 versions. So instead of preceding

0 commit comments

Comments
 (0)