| |||
| Home > Working with Files > Comparing and merging files and directories > Applying and unapplying differences | |||
Use the toolbar and Differences list in the File Compare Results window to select the differences that you want to apply from the source file to the destination file.
To view and apply a difference from the source file to the destination file:
Click the entry for the difference in the Differences list.
Click the Apply Difference button in the toolbar, or select Apply Difference from the Search menu. The CodeWarrior IDE changes the destination file to match the source file for the selected difference. The applied difference is displayed in italics in the Differences list (Figure 2.13).
To view and apply all reported differences between the source file and the destination file:
Click in the Differences list.
Select Select All from the Edit menu (or press Ctrl+A), to select all the reported differences.
Click the Apply Difference button in the toolbar, or select Apply Difference from the Search menu. All the reported differences are applied to the destination file. The applied differences are displayed in italics in the Differences list (Figure 2.14).
To reverse a difference you have applied:
Click the entry for the difference you want to unapply. Applied differences are displayed in italics in the Differences list.
Click the Unapply button in the toolbar, or select Unapply Difference from the Search menu.
The Apply Difference and Unapply Difference commands erase all actions from the Undo stack. When you exit the File Compare Results window after applying or unapplying differences, all undo and redo actions are cleared from the Undo stack.