PhpStorm 8.0.0 Web Help

VCS | Create Patch
View | Tool Windows | Changes - Local - Context menu of a file or change list - Commit Changes


Use this dialog box to have a patch file for the specified changelist or files generated.

Toolbar

Item Tooltip and Shortcut Description Available in
vcsToolbarCompareIcon Show Differences
Ctrl+DCtrl+DCtrl+DCtrl+DMeta+DCtrl+DCtrl+D, Ctrl+Shift+Down or Ctrl+Shift+UpCtrl+DCommand DCommand DCommand D
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
vcsToolbarMoveChangelistIcon Move to Another Changelist
F6F6F6F6F6F6Ctrl+MShift+Alt+VF6F6Alt Command V
Click this button to add the selected file(s) to another changelist. The Choose Changelist dialog box opens where you can select an existing changelist or create a new one. All VCSs
refresh.png Refresh Changes
Ctrl+F5Ctrl+F5Ctrl+5Ctrl+F5Ctrl+F5Ctrl+Alt+RCtrl+F5Ctrl+F5Command RCommand RCommand R
Click this button to reload the Changed files tree view so it is up-to-date. All VCSs
img Rollback Click this button to revert all the changes made to the local working copy of the selected file(s). All VCSs
vcsToolbarJumpToSourceIcon Jump to source
F4F4F4F4F4F4F4F12 or Ctrl+Shift+ECommand Down or F4Command Down or F4F3
Click this button to open the source code of the selected file in the editor. All VCSs
vcsToolbarRevertUnchangedIcon Revert Unchanged Files Click this button to revert the files that have not been modified locally. Subversion
Perforce
vcsToolbarGroupByDirIcon Group by Directory
Ctrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCommand PCommand PCommand P
Use this toggle button to switch between the flat view and the directory tree view. All VCSs
expandAll
img
Expand or collapse all nodes
Ctrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCommand NumPad or Command EqualsCommand NumPad or Command EqualsCommand NumPad or Command Equals
Ctrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCommand NumPad - or Command MinusCommand NumPad - or Command MinusCommand NumPad - or Command Minus
Click these buttons to expand or collapse all nodes in the directory tree. These buttons are not available in flat view. All VCSs
svnSelectAll Select All
Ctrl+ACtrl+ACtrl+ACtrl+ACtrl+X, HCtrl+ACtrl+ACtrl+ACommand ACommand ACommand A
Click this button to select all the files in the list or directory tree. All VCSs

Controls

Item Description Available in
Changed files This tree view displays the list of changed files. Select check boxes next to the files to be included in the patch. All VCSs
Comment In this text box, describe the changes to be included in the patch. As you type, PhpStorm checks the spelling and highlights words in question.

Note

This functionality is available if the Spelling code inspection is enabled.

Change list From this drop-down list, select the change list that contains the modified files to be included in the patch. By default, the active change list is suggested. All VCSs
Summary This section displays summary statistics on the currently selected change list, such as the number of modified, new, and deleted files. The area also shows how many files of each type are shown and how many of them will be included in the patch. All VCSs
Before commit Use this area to define which additional activities you want PhpStorm to perform before creating a patch based on the changes in the selected files. The available options are:
  • Optimize imports - select this check box to have redundant import statements removed.
  • Reformat code - select this check box to perform code formatting according to the Project Code Style settings.
  • Perform code analysis for affected files - select this check box to run code inspection on the changed files.
  • Revert unchanged - select this check box to revert unchanged files.

    Note

    This option is only available for Perforce.

CVS
Git,
Subversion,
Perforce
After Commit Use this area to define which additional activities you want PhpStorm to perform after creating a patch based on the changes in the selected files. The available options are:
  • Upload files to: - use this drop-down list to have the changed files uploaded to a local or remote server, a mounted disk, or a directory. Select the relevant server configuration from the list. To suppress uploading, choose None.
  • Tag committed files - select this check box to have a tag assigned to the changed files. In the text box, type the name of the tag. To have a previously assigned tag replaced with the new one, select the Override existing tags check box.

    Note

    This option is only available for CVS.

All VCSs
Create patch Click this button to type the name of the patch file and specify whether you need a reverse patch generated in the Create Patch dialog box that opens. All VCSs

See Also

Concepts:

Procedures:

Web Resources: