OpenQuizz
Une application de gestion des contenus pédagogiques
Stats Class Reference
Inheritance diagram for Stats:
Collaboration diagram for Stats:

Public Member Functions

def __init__ (self, total, files)
 

Data Fields

 total
 
 files
 

Detailed Description

Represents stat information as presented by git at the end of a merge. It is
created from the output of a diff operation.

``Example``::

 c = Commit( sha1 )
 s = c.stats
 s.total         # full-stat-dict
 s.files         # dict( filepath : stat-dict )

``stat-dict``

A dictionary with the following keys and values::

  deletions = number of deleted lines as int
  insertions = number of inserted lines as int
  lines = total number of lines changed as int, or deletions + insertions

``full-stat-dict``

In addition to the items in the stat-dict, it features additional information::

 files = number of changed files as int

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  total,
  files 
)

Field Documentation

◆ files

files

◆ total

total

The documentation for this class was generated from the following file: