Ggit.DiffLine¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
|
|
Details¶
- class Ggit.DiffLine¶
Represents the line of a diff.
- get_new_lineno()¶
- Returns:
the line’s old number of lines.
- Return type:
Gets the Line number in new file or -1 for deleted line.
- get_old_lineno()¶
- Returns:
the line’s old line number.
- Return type:
Gets the line number in old file or -1 for added line.
- get_origin()¶
- Returns:
the
Ggit.DiffLineType
value.- Return type:
Gets the
Ggit.DiffLineType
value.
- get_text()¶
-
Get the content of the diff line as UTF-8 encoded text.
- ref()¶
- Returns:
a
Ggit.DiffLine
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.