AppCode 2018.1 Help

Apply Patch Dialog

VCS | Apply Patch

Use the dialog box to restore changes that were preserved in a patch file in the specified directory.


Tooltip and Shortcut


Patch file name

In this text box, specify the name of the *.patch file to be applied. Type the fully qualified name or click Browse browseButton.png and locate the desired patch file using the Select Patch File dialog box, that opens.


Group by Directory

Use this button to toggle between the flat view and the directory tree view. Select the checkboxes next to the changes that you want to be applied.

expandAll.png collapseAll

Expand All/Collapse All

Use these buttons to expand/collapse all nodes


Map base directory

In the dialog that opens, select the directory relative to which file names in the patch file will be interpreted. You can map a base directory to a single file, directory, or to a selection.


Show Differences

Click this button to open the difference viewer that shows the differences between your local working copy, the repository version, and the patch. Use the buttons Compare Previous File comparePreviousFile.png and Compare Next File compareNextFile.png to have the files in patch compared in a chain.

Strip Directory

Use this button to apply the changes to files located in different directories from the ones specified in the patch. Clicking this button removes one slash in the path to the target file. Click the button as many times as many leading directories you need to strip. The number of removed slashes is indicated in square brackets.


Restore Directory

Use this button to revert the last strip directory action. Click the button as many times as many previously stripped leading directories you need to restore.


Reset Directories

Use this button to revert all strip directory actions in the selection.


Remove Directories

Click this button to have all the leading directories stripped and have the changes applied to the file with the specified name in the base directory.



Click this button to synchronize the tree with the current state of the file system.


This section displays summary information for the currently selected changelist (the number of modified, new, and deleted files).

Existing Changelist

Select this option to add the patched files to an existing changelist and select the desired changelist from the drop-down list.

New Changelist

Select this option to create a new changelist and add the patched files to it.
  • Name: in this text box, type the name of the new changelist. By default, it is the name of the current patch.

  • Comment: in in this text box, type the comment to the new changelist.

  • Make this changelist active: select this checkbox to have AppCode automatically give the active status to the new change list immediately after the changes are restored in it. When this checkbox is cleared, the current active changelist remains active.

  • Track Context: select this checkbox to have AppCode preserve the context of the task associated with the new changelist on its deactivation and restore the context when the changelist becomes active. See Managing Tasks and Contexts for details.

Last modified: 19 September 2019