DiffLine
Object Hierarchy:
Description:
[ CCode ( ref_function = "ggit_diff_line_ref" , type_id = "ggit_diff_line_get_type ()" , unref_function = "ggit_diff_line_unref" ) ]
[ Compact ]
public class DiffLine
Represents the line of a diff.
Content:
Methods:
- public unowned DiffLine? @ref ()
Atomically increments the reference count of
this by one.
- public unowned uint8[] get_content ()
Gets the content in bytes.
- public int64 get_content_offset ()
Gets the content offset.
- public int get_new_lineno ()
Gets the Line number in new file or -1 for deleted line.
- public int get_old_lineno ()
Gets the line number in old file or -1 for added line.
- public DiffLineType get_origin ()
- public unowned string? get_text ()
Get the content of the diff line as UTF-8 encoded text.
- public void unref ()
Atomically decrements the reference count of
this by one.