Create Patch Dialog
Use this dialog box to generate a patch file for the specified changelist or files.
Use this dialog box to create a patch from the selected changelist or files.
This dialog box consists of several areas:
Modified files pane
This section contains a list of files that were modified since the last commit. All files in this list are selected by default. Deselect the check-boxes next to the files that you want to exclude from the patch.
|Item||Tooltip and Shortcut||Description||Available in|
|Click this button to open the Differences dialog box that points at the inconsistencies between your local working copy of the selected file and the file in the repository.||All VCSs|
|Move to Another Changelist
|Click this button to add the selected file(s) to another changelist. The Move to Another Changelist dialog box opens where you can select an existing changelist or create a new one.||All VCSs|
|Click this button to reload the Changed files tree view so it is up-to-date.||All VCSs|
|Rollback||Click this button to revert all changes made to the local working copy of the selected file(s).||All VCSs|
|Jump to source
|Click this button to open the source code of the selected file in the editor.||All VCSs|
|Revert Unchanged Files||Click this button to revert the files that have not been modified locally.||
|Group by Directory
|Click this button to toggle between the flat view and the directory tree view.||All VCSs|
||Expand or collapse all nodes
|Click these buttons to expand or collapse all nodes in the directory tree. These buttons are not available in flat view.||All VCSs|
|Change list||N/A||From this drop-down list, select the changelist that contains the modified files to be checked in or included in the patch. The active changelist is selected by default.||All VCSs|
The summary under the modified files pane shows statistics on the currently selected changelist, such as the number of modified, new and deleted files. This area also shows how many files of each type are shown, and how many of them will be included in the patch.
Commit Message pane
The comment you enter in this area will be used as the name of the patch file.
In this pane you can explore the differences between the base repository version of the selected file, and the version you want to include in the patch.
|Item||Tooltip and Shortcut||Description|
|Previous Difference / Next Difference
F7||Use these buttons to jump to the next/previous difference.
When the last/first difference is hit, IntelliJ IDEA suggests to click the arrow buttons F7/Shift+F7 once more and compare other files, depending on the Go to the next file after reaching last change option in the Differences Viewer settings.
This behavior is supported only when the Differences Viewer is invoked from the Version Control tool window.
||Compare Previous/Next File
|Click these buttons to compare the local copy of the previous/next file with its update from the server.|
Jump to Source
|Click this button to open the selected file in the active pane in the editor. The caret will be placed in the same position as in the Differences Viewer.|
Use this drop-down list to choose the desired viewer type. The side-by-side viewer has two panels;
the unified viewer has one panel only.
Both types of viewers enable you to
|Whitespace||Use this drop-down list to define how the differences viewer should treat white spaces in the text.
|Highlighting mode||Select the way differences granularity is highlighted. |
The available options are:
|Collapse unchanged fragments||Click this button to collapse all unchanged fragments in both files. The amount of non-collapsible unchanged lines is configurable in the Diff settings page.|
|Synchronize scrolling||Click this button to scroll both differences panes simultaneously. If this button is released, each pane can be scrolled independently.|
|Disable editing||Click this button to enable editing of the local copy of the selected file, which is disabled by default. When editing is enabled, you can make last-minute changes to the modified file before committing it.|
|Editor settings||Click this button to open a drop-down list of available options. Select or clear these options to show or hide line numbers, indentation guides, white spaces, and soft wraps.|
|Show diff in external tool||Click this button to invoke an external differences viewer, specified in the
External Diff Tools settings page.
This button only appears on the toolbar when the Use external diff tool option is enabled in the External Diff Tools settings page.
|Click this button to show the corresponding help page.|
Note that the options listed above are available for text files only. IntelliJ IDEA cannot compare binary files, so most commands will be unavailable for them.