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.DiffLineTypevalue.- Return type:
 
Gets the
Ggit.DiffLineTypevalue.
- get_text()¶
 - 
Get the content of the diff line as UTF-8 encoded text.
 
- ref()¶
 - Returns:
 a
Ggit.DiffLineorNone.- 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.