Ggit.BlameHunk – libgit2-glib-1.0 Reference Manual
BlameHunk
Object Hierarchy:
Ggit.BlameHunk
Ggit.BlameHunk
Ggit.BlameHunk
Description:
[
CCode
( ref_function =
"ggit_blame_hunk_ref"
, type_id =
"ggit_blame_hunk_get_type ()"
, unref_function =
"ggit_blame_hunk_unref"
) ]
[
Compact
]
public
class
BlameHunk
Represents a blame hunk.
Namespace:
Ggit
Package:
libgit2-glib-1.0
Content:
Methods:
public
unowned
BlameHunk
?
@ref
()
Atomically increments the reference count of
this
by one.
public
unowned
OId
?
get_final_commit_id
()
Get the id of the commit where this hunk was last changed.
public
unowned
Signature
?
get_final_signature
()
Get the signature of the final version of the hunk.
public
uint16
get_final_start_line_number
()
Get the line number where the hunk begins in the final version of the file.
public
uint16
get_lines_in_hunk
()
Get the number of lines in the hunk.
public
unowned
OId
?
get_orig_commit_id
()
Get the id of the commit where the hunk was found.
public
unowned
string
?
get_orig_path
()
Get the path of the file where this hunk originated, as of the commit specified by
get_orig_commit_id
.
public
unowned
Signature
?
get_orig_signature
()
Get the signature of the commit specified by
get_orig_commit_id
.
public
uint16
get_orig_start_line_number
()
Get the line number where the hunk begins in the file specified by
get_orig_path
at the commit specified by
get_orig_commit_id
.
public
bool
is_boundary
()
Get whether the hunk has been tracked to a boundary commit (the root, or the commit specified in
set_oldest_commit
).
public
void
unref
()
Atomically decrements the reference count of
this
by one.
2022 vala-language.org