Struct

GgitBlameHunk

Description [src]

struct GgitBlameHunk {
  /* No available fields */
}

Represents a blame hunk.

Instance methods

ggit_blame_hunk_get_final_commit_id

Get the id of the commit where this hunk was last changed.

ggit_blame_hunk_get_final_signature

Get the signature of the final version of the hunk.

ggit_blame_hunk_get_final_start_line_number

Get the line number where the hunk begins in the final version of the file. Line numbers start at 1.

ggit_blame_hunk_get_lines_in_hunk

Get the number of lines in the hunk.

ggit_blame_hunk_get_orig_commit_id

Get the id of the commit where the hunk was found. This is usually the same the final commit id, except when #GGIT_BLAME_TRACK_COPIES_ANY_COMMIT was used.

ggit_blame_hunk_get_orig_path

Get the path of the file where this hunk originated, as of the commit specified by #ggit_blame_hunk_get_orig_commit_id.

ggit_blame_hunk_get_orig_signature

Get the signature of the commit specified by #ggit_blame_hunk_get_orig_commit_id.

ggit_blame_hunk_get_orig_start_line_number

Get the line number where the hunk begins in the file specified by

ggit_blame_hunk_get_orig_path at the commit specified by

ggit_blame_hunk_get_orig_commit_id. Line numbers start at 1.

ggit_blame_hunk_is_boundary

Get whether the hunk has been tracked to a boundary commit (the root, or the commit specified in #ggit_blame_options_set_oldest_commit).

ggit_blame_hunk_ref

Atomically increments the reference count of blame_hunk by one. This function is MT-safe and may be called from any thread.

ggit_blame_hunk_unref

Atomically decrements the reference count of blame_hunk by one. If the reference count drops to 0, blame_hunk is freed.