Ggit.DiffHunk¶
Fields¶
None
Methods¶
|
|
|
|
|
Details¶
- class Ggit.DiffHunk¶
Represents the hunk of a diff.
- get_new_lines()¶
- Returns:
the number of lines in the new file.
- Return type:
Gets the number of lines in the new file.
- get_new_start()¶
- Returns:
the starting line number in the new file.
- Return type:
Gets the starting line number in the new file.
- get_old_lines()¶
- Returns:
the number of lines in the old file.
- Return type:
Gets the number of lines in the old file.
- get_old_start()¶
- Returns:
the starting line number in the old file.
- Return type:
Gets the starting line number in the old file.
- ref()¶
- Returns:
a
Ggit.DiffHunk
orNone
.- Return type:
Atomically increments the reference count of self by one. This function is MT-safe and may be called from any thread.
- unref()¶
Atomically decrements the reference count of self by one. If the reference count drops to 0, self is freed.