libgit2

blame

Version:
Git blame routines

Objects

Structs

Blame options structure

Structure that represents a blame hunk

Macros

Enums

Flags for indicating option behavior for git_blame APIs

Functions

Initializes a git_blame_options with default values creating an instance with GIT_BLAME_OPTIONS_INIT.

Gets the number of hunks that exist in the blame structure

Gets the blame hunk at the given index

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

Get the blame for a single file

Get blame data for a file that has been modified in memory 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.

Free memory allocated by git_blame_file or git_blame_buffer