# eric7.Plugins.VcsPlugins.vcsGit.GitPatchStatisticsDialog

Module implementing a dialog to show some patch file statistics.

### Global Attributes

None

### Classes

GitPatchStatisticsDialog | Class implementing a dialog to show some patch file statistics.

### Functions

None

## GitPatchStatisticsDialog

Class implementing a dialog to show some patch file statistics.

### Derived from

QDialog, Ui_GitPatchStatisticsDialog

### Class Attributes

None

### Class Methods

None

### Methods

GitPatchStatisticsDialog | Constructor
__createStatisticsItem | Private method to create a file statistics entry.
__resizeColumns | Private method to resize the list columns.
getData | Public method to get the data used to generate the statistics.
start | Public method to start the statistics process.

### Static Methods

None

#### GitPatchStatisticsDialog (Constructor)

GitPatchStatisticsDialog(vcs, parent=None)

Constructor

vcs (Git)
  reference to the VCS object (Git)
parent (QWidget)
  reference to the parent widget

#### GitPatchStatisticsDialog.__createStatisticsItem

__createStatisticsItem(line)

Private method to create a file statistics entry.

line (str)
  string with file statistics data

#### GitPatchStatisticsDialog.__resizeColumns

__resizeColumns()

Private method to resize the list columns.

#### GitPatchStatisticsDialog.getData

getData()

Public method to get the data used to generate the statistics.

Return:
  tuple of list of patch files, strip count, flag indicating that the patch has inaccurate end-of-file marker and a flag indicating to not trust the line count information

Return Type:
  tuple of (list of str, int, bool, bool)

#### GitPatchStatisticsDialog.start

start(projectDir, patchCheckData)

Public method to start the statistics process.

projectDir (str)
  directory name of the project
patchCheckData (tuple of (list of str, int, bool, bool))
  tuple of data as returned by the GitPatchFilesDialog.getData() method

Up