module documentation

Undocumented

Function diffstat (git diff tag1 tag2 --stat)
Function main Undocumented
Function _parse_patch Parse a git style diff or patch to generate diff stats.
Constant _GIT_ADDED_START Undocumented
Constant _GIT_BINARY_START Undocumented
Constant _GIT_CHUNK_START Undocumented
Constant _GIT_DELETED_START Undocumented
Constant _GIT_HEADER_START Undocumented
Constant _GIT_RENAMEFROM_START Undocumented
Constant _GIT_RENAMETO_START Undocumented
Constant _GIT_UNCHANGED_START Undocumented
Variable _git_header_name Undocumented
def diffstat(lines, max_width=80):
Generate summary statistics from a git style diff ala
(git diff tag1 tag2 --stat)
Returns: A byte string that lists the changed files with change
counts and histogram
Parameters
lineslist of byte string "lines" from the diff to be parsed
max_widthmaximum line length for generating the summary statistics (default 80)
def main():

Undocumented

def _parse_patch(lines):

Parse a git style diff or patch to generate diff stats.

Returns: A tuple (names, is_binary, counts) of three lists

Parameters
lineslist of byte string lines from the diff to be parsed
_GIT_ADDED_START: bytes =

Undocumented

Value
b'+'
_GIT_BINARY_START: bytes =

Undocumented

Value
b'Binary file'
_GIT_CHUNK_START: bytes =

Undocumented

Value
b'@@'
_GIT_DELETED_START: bytes =

Undocumented

Value
b'-'
_GIT_HEADER_START: bytes =

Undocumented

Value
b'diff --git a/'
_GIT_RENAMEFROM_START: bytes =

Undocumented

Value
b'rename from'
_GIT_RENAMETO_START: bytes =

Undocumented

Value
b'rename to'
_GIT_UNCHANGED_START: bytes =

Undocumented

Value
b' '
_git_header_name =

Undocumented