libgit2_d.blame

Undocumented in source.

Members

Enums

GIT_BLAME_NORMAL
anonymousenum GIT_BLAME_NORMAL
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_blame_flag_t
enum git_blame_flag_t

Flags for indicating option behavior for git_blame APIs.

Functions

GIT_BLAME_OPTIONS_INIT
GIT_BLAME_OPTIONS_INIT()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_blame_buffer
int git_blame_buffer(.git_blame** out_, .git_blame* reference, const(char)* buffer, size_t buffer_len)

Get blame data for a file that has been modified in memory. The reference parameter is a pre-calculated blame for the in-odb history of the file. This means that once a file blame is completed (which can be expensive), updating the buffer blame is very fast.

git_blame_file
int git_blame_file(.git_blame** out_, libgit2_d.types.git_repository* repo, const(char)* path, .git_blame_options* options)

Get the blame for a single file.

git_blame_free
void git_blame_free(.git_blame* blame)

Free memory allocated by git_blame_file or git_blame_buffer.

git_blame_get_hunk_byindex
const(.git_blame_hunk)* git_blame_get_hunk_byindex(.git_blame* blame, uint index)

Gets the blame hunk at the given index.

git_blame_get_hunk_byline
const(.git_blame_hunk)* git_blame_get_hunk_byline(.git_blame* blame, size_t lineno)

Gets the hunk that relates to the given line number in the newest commit.

git_blame_get_hunk_count
uint git_blame_get_hunk_count(.git_blame* blame)

Gets the number of hunks that exist in the blame structure.

git_blame_options_init
int git_blame_options_init(.git_blame_options* opts, uint version_)

Initialize git_blame_options structure

Manifest constants

GIT_BLAME_OPTIONS_VERSION
enum GIT_BLAME_OPTIONS_VERSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

git_blame
struct git_blame

Opaque structure to hold blame results

git_blame_hunk
struct git_blame_hunk

Structure that represents a blame hunk.

git_blame_options
struct git_blame_options

Blame options structure

Meta