Updated TortoiseMerge docs from TortoiseSVN source
[TortoiseGit.git] / doc / source / en / TortoiseMerge / tme_dug_views.xml
blob469242236e90ae66261b22cd77d22ba245262ac0
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
5     <para>\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
9     </para>\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
15         </figure>\r
16         <figure id="tmerge-dug-dia-2pane">\r
17             <title>Two Pane View</title>\r
18             <graphic fileref="images/TMerge_TwoPane.png"/>\r
19         </figure>\r
20         <para>\r
21             The two pane view has some features which are not available\r
22             in the one pane view:\r
23             <itemizedlist>\r
24                 <listitem>\r
25                     <para>\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
31                         see how this works.\r
32                     </para>\r
33                 </listitem>\r
34                 <listitem>\r
35                     <para>\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
40                     </para>\r
41                     <para>\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
46                     </para>\r
47                 </listitem>\r
48                 <listitem>\r
49                     <para>\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
52                     </para>\r
53                 </listitem>\r
54             </itemizedlist>\r
55         </para>\r
56         <para>\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
60         </para>\r
61         <figure id="tmerge-dug-dia-3pane">\r
62             <title>Three Pane View</title>\r
63             <graphic fileref="images/TMerge_ThreePane.png"/>\r
64         </figure>\r
65         <para>\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
73         </para>\r
74         <para>\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
77         </para>\r
78     </sect2>\r
79     <sect2 id="tmerge-dug-view-patch">\r
80         <title>Applying Patches</title>\r
81         <?dbhh topicname="HIDD_FILEPATCHES"?>\r
82         <para>\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
89             </figure>\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
95         </para>\r
96         <para>\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
106         </para>\r
107         <para>\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
114         </para>\r
115         <para>\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
120         </para>\r
121     </sect2>\r
122 </sect1>\r