Ggit.DiffLine – ggit-1.0 Reference Manual
Packages
ggit-1.0
Ggit
DiffLine
@ref
get_content
get_content_offset
get_new_lineno
get_old_lineno
get_origin
get_text
unref
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.
Namespace:
Ggit
Package:
ggit-1.0
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
()
Gets the
DiffLineType
value.
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.