git_blame_hunk

Structure that represents a blame hunk.

Members

Variables

boundary
char boundary;

The 1 iff the hunk has been tracked to a boundary commit (the root, or the commit specified in git_blame_options.oldest_commit)

final_commit_id
libgit2.oid.git_oid final_commit_id;

The OID of the commit where this line was last changed.

final_signature
libgit2.types.git_signature* final_signature;

The author of final_commit_id. If GIT_BLAME_USE_MAILMAP has been specified, it will contain the canonical real name and email address.

final_start_line_number
size_t final_start_line_number;

The 1-based line number where this hunk begins, in the final version of the file.

lines_in_hunk
size_t lines_in_hunk;

The number of lines in this hunk.

orig_commit_id
libgit2.oid.git_oid orig_commit_id;

The OID of the commit where this hunk was found. This will usually be the same as final_commit_id, except when GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES has been specified.

orig_path
const(char)* orig_path;

The path to the file where this hunk originated, as of the commit specified by orig_commit_id.

orig_signature
libgit2.types.git_signature* orig_signature;

The author of orig_commit_id. If GIT_BLAME_USE_MAILMAP has been specified, it will contain the canonical real name and email address.

orig_start_line_number
size_t orig_start_line_number;

The 1-based line number where this hunk begins in the file named by orig_path in the commit specified by orig_commit_id.

Meta