libgit2

git_blame_hunk

Version:

Structure that represents a blame hunk.

Signature

typedef struct git_blame_hunk { size_t lines_in_hunk git_oid final_commit_id size_t final_start_line_number git_signature *final_signature git_signature *final_committer git_oid orig_commit_id const char *orig_path size_t orig_start_line_number git_signature *orig_signature git_signature *orig_committer const char *summary char boundary };

Members

size_t
lines_in_hunk

The number of lines in this hunk.

final_commit_id

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

size_t
final_start_line_number

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

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_committer

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

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.

const char *
orig_path

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

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.

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_committer

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

const char *
summary
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)

Returned By

Versions