Apply Patch Dialog
VCS | Apply Patch
Use the dialog box to restore changes from a patch file.
Tooltip and Shortcut
Patch file name
Specify the name of the *.patch file that you want to apply. Enter the fully qualified name or click Browse and select the patch file in the dialog that opens.
Click to open the difference viewer that shows the differences between your local working copy, the repository version, and the patch.
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.
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.
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.
Use this button to revert all strip directory actions in the selection.
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.
Click to select how you want to group files modified in the patch.
Expand All/Collapse All
Use these buttons to expand/collapse all nodes
This section displays summary information for the currently selected changelist (the number of modified, new, and deleted files).
Select an existing changelist or type the name of a new changelist where you want the patch to be added.
Enter a comment to the new changelist.
Select this checkbox to have DataGrip 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.
Select this checkbox to have DataGrip preserve the context of the task associated with the new changelist on its deactivation and restore the context when the changelist becomes active.
Analyze and Apply Patch from Clipboard on the Fly
Select this option if you want DataGrip to automatically detect patches in clipboard contents and suggest applying them.