IntelliJ IDEA 2020.3 Help

Apply Patch dialog

Use the dialog to restore changes from a patch file.

Item Tooltip and Shortcut Description
Patch file name Specify the name of the *.patch file that you want to apply. Enter the fully qualified name or click Browse Icons general ellipsis and select the patch file in the dialog that opens.
Icons actions diff Show diff
Click to open the difference viewer that shows the differences between your local working copy, the repository version, and the patch.
Icons vcs map base 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.
Icons vcs strip down 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.
Icons vcs strip up 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.
Icons vcs reset strip Reset Directories Use this button to revert all strip directory actions in the selection.
Icons vcs strip null 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.
Icons actions refresh Refresh Click this button to synchronize the tree with the current state of the file system.
Icons actions group by Group By Click to select how you want to group files modified in the patch.
Icons actions expandall Icons actions collapseall Expand All/Collapse All
Ctrl+NumPad +
Ctrl+NumPad -
Use these buttons to expand/collapse all nodes
Summary This section displays summary information for the currently selected changelist (the number of modified, new, and deleted files).
Name Select an existing changelist or type the name of a new changelist where you want the patch to be added.
Comment Enter a comment to the new changelist.
Set active Select this checkbox to have IntelliJ IDEA automatically give the active status to the new changelist 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 IntelliJ IDEA preserve the context of the task associated with the new changelist on its deactivation and restore the context when the changelist becomes active. See Tasks and contexts for details.
Analyze and Apply Patch from Clipboard on the Fly Select this option if you want IntelliJ IDEA to automatically detect patches in clipboard contents and suggest applying them.
Last modified: 11 November 2020