Introduction to Merging |
4 |
![]() |
For explicit details on using Merging, together with an example, see Chapter 15, "Starting and Loading Merging."
At the time you load the two files to be merged, you can also specify a third file, called the ancestor of the two files (which are called its descendants). When you have specified an ancestor file, Merging marks lines in the descendants that are different from the ancestor and produces a merged file based on all three files. To automatically merge (automerge) the two input files, you must specify an ancestor file.
While focusing on a difference, you can accept a line from one of the original files, or you can edit the merged version by hand. When you indicate that you are satisfied with your changes (by clicking on a command button), the current difference is then resolved.
If the Auto Merge feature is on, Merging resolves differences automatically. For more information on how Merging resolves differences, see the discussion in "Merging Glyphs."
After a difference is resolved, Merging identifies it by changing its associated glyphs from solid to outline font. Merging then automatically advances to the next difference (if the Auto Advance property is on) or moves to the difference of your choice.
Graphical Overview
The graphical interface for Merging consists of one main window, in which you do most of your work, and pop-up windows for handling files and setting properties. Descriptions of the graphical interface are found in the online help. Pull down the Help menu on the upper right of the Merging menu bar to access Help Contents. Merging Window
The Merging window at startup shows the left and right text panes at the top displaying the files to be compared; the text pane at the bottom displays a merged version of the two files that you can edit. Merging Glyphs
When files are loaded in the text panes, glyphs appear to indicate the disparities. There is a difference between two files being merged without a common ancestor, and two files that have a common ancestor (this case is actually a three-way merge). The meaning of the glyphs in each case is slightly different, as explained below. Two Input Files
When only two files have been loaded into Merging, lines in each file are marked by glyphs to indicate when they differ from corresponding lines in the other file:
Table 4-1 summarizes the automerging algorithm. Ancestor is the version of a text line that is in the ancestor file; Change 1 is a change to that line in one of the descendants; Change 2 is another change, different from Change 1. Only when a line is changed differently in the left and right descendants does automerging fail.
When Merging automatically resolves a difference, it changes the glyphs to outline font. Merging lets you examine automatically resolved differences to be sure that it has made the correct choices.