class documentation

class PatchHunk:

View In Hierarchy

Represents a single hunk in a unified diff.

Instance Variable lines List of diff lines (prefixed with ' ', '+', or '-')
Instance Variable new_count Number of lines in new file
Instance Variable new_start Starting line number in new file
Instance Variable old_count Number of lines in old file
Instance Variable old_start Starting line number in old file
lines: list[bytes] =

List of diff lines (prefixed with ' ', '+', or '-')

new_count: int =

Number of lines in new file

new_start: int =

Starting line number in new file

old_count: int =

Number of lines in old file

old_start: int =

Starting line number in old file