1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE chapter SYSTEM "../../dtd/dblite.dtd">
\r
3 <sect1 id="tmerge-dug-views">
\r
4 <title>Viewing Modes</title>
\r
6 TortoiseGitMerge has three main viewing modes: one-pane, two-pane
\r
7 and three-pane view. One/two-pane view is used to view changes
\r
8 and three-pane view is used to resolve conflicts.
\r
10 <sect2 id="tmerge-dug-view-merge">
\r
11 <title>Viewing / Merging</title>
\r
12 <figure id="tmerge-dug-dia-1pane">
\r
13 <title>One Pane View</title>
\r
14 <graphic fileref="images/TMerge_OnePane.png"/>
\r
16 <figure id="tmerge-dug-dia-2pane">
\r
17 <title>Two Pane View</title>
\r
18 <graphic fileref="images/TMerge_TwoPane.png"/>
\r
21 The two pane view has some features which are not available
\r
22 in the one pane view:
\r
26 Changes inside the modified lines are shown in different
\r
27 colors. Added string parts are shown with a lighter color,
\r
28 but you can of course configure the colors used here.
\r
29 Removed parts are indicated with a dark brown vertical
\r
30 line in the string. Check out the screenshot above to
\r
36 Code reorganization usually means a lot of changes in whitespaces
\r
37 (space, tab, newlines) but no actual code change. For example,
\r
38 you split up a very long line into several lines, or you sometimes
\r
39 compact several lines together into one.
\r
42 Such changes are marked with a white circle symbol on the left side
\r
43 of the views. If you see such a white circle, you know immediately
\r
44 that no real code change is there and you don't have to check the
\r
45 changed block further.
\r
50 Hand editing of the file in the right pane is possible in two-pane
\r
51 view. Such changes are marked with a pencil symbol.
\r
57 If you want to compare/merge three files, TortoiseGitMerge
\r
58 will show you the differences in a three pane view. This view
\r
59 is also used if you need to resolve conflicted files.
\r
61 <figure id="tmerge-dug-dia-3pane">
\r
62 <title>Three Pane View</title>
\r
63 <graphic fileref="images/TMerge_ThreePane.png"/>
\r
66 The left pane shows you the differences between
\r
67 <emphasis>Their</emphasis> file and the <emphasis>Base</emphasis>
\r
68 file, while the right pane shows you the differences between
\r
69 <emphasis>Mine</emphasis> file and the <emphasis>Base</emphasis>
\r
70 file. The bottom pane shows you the result of merging
\r
71 <emphasis>Base</emphasis>, <emphasis>Mine</emphasis> and
\r
72 <emphasis>Theirs</emphasis> with possible conflicts.
\r
75 If you hover the mouse over the pane title, a tooltip will
\r
76 show the filenames used for the diff in each pane.
\r
79 <sect2 id="tmerge-dug-view-patch">
\r
80 <title>Applying Patches</title>
\r
81 <?dbhh topicname="HIDD_FILEPATCHES"?>
\r
83 After TortoiseGitMerge parses the patch file it will show
\r
84 you a small window with all the files which have changes
\r
85 according to the patch file.
\r
86 <figure id="tmerge-dug-dia-patch">
\r
87 <title>Patch File List</title>
\r
88 <graphic fileref="images/TMerge_PatchWindow.png"/>
\r
90 If the filename is shown in black, then the patch can be applied
\r
91 without any problems. That means the file is not outdated
\r
92 according to the patch.
\r
93 However, if the filename is shown in red, then the patch can't
\r
94 get applied directly because you already changed that file.
\r
97 But don't worry. If you're working with Subversion you can
\r
98 retrieve an older version of the file and resolve the conflict.
\r
99 In fact, TortoiseGitMerge automatically tries to get that older
\r
100 version of the file and then shows you the diff between
\r
101 <emphasis>Base</emphasis> (the older version of the file),
\r
102 <emphasis>Mine</emphasis> (the file as it is currently in your
\r
103 working copy) and <emphasis>Theirs</emphasis> (the older version
\r
104 of the file with the patch already applied). Then you can
\r
105 resolve possible conflicts manually.
\r
108 The patch file window has a context menu which allows you to
\r
109 preview the effect of the patch on the current file
\r
110 (apply without saving), to apply and save the changes
\r
111 for the selected file, or to apply and save changes to
\r
112 <emphasis>all</emphasis> files in the list.
\r
113 The double click action is to preview.
\r
116 Depending on whether TortoiseGitMerge can apply the patch directly
\r
117 or by fetching an older version of the file first, it shows you
\r
118 a two pane view (patch can be applied directly) or a three pane
\r
119 view (older version of file fetched).
\r