Merging Source Files |
7 |
![]() |
This chapter explains how to start Merging, load it with files, and save the output file. The chapter is organized into the following sections:
Understanding Merging
Merging loads and displays two text files for side-by-side comparison, each in a read-only text pane. Any differences between the two files are marked, and a merged version of the two files which you can edit to produce a final merged version.Figure 7-1 Merging Window with Loaded Files
![]() | Click the Merging icon |
![]() | Choose Tools ![]() |
If the Auto Merge feature is on, Merging resolves differences automatically.
Glyph type |
Designates |
Plus sign |
New line |
Minus sign |
Deleted line |
Vertical bar |
Change in line |
No glyph |
No changes in line |
Three Input Files
When an common ancestor file is designates, glyphs next to the lines in each file indicate when they differ from the corresponding lines in the ancestor:
To accept a difference:
![]() | Click the Accept button, or Click the Accept & Next button to accept the difference and move to the next difference. |
You can disable Auto Merge by choosing Options
If you do not specify an ancestor file, Merging has no reference with which to compare a difference between the two input files. Consequently, Merging cannot determine which line in a difference is likely to represent the desired change. The result of an auto merge with no ancestor is the same as disabling automatic merging: Merging constructs a merged file using only lines that are identical in both input files and relies on you to resolve differences.
To change the name of the output file while saving, choose Save As and fill in the new file and directory names in the resulting pop-up window, as shown in the following figure.