libgit2

blame

Version:
Git blame routines

Objects

Opaque structure to hold blame results

Structs

Blame options structure

Structure that represents a blame hunk

Macros

Enums

Flags for indicating option behavior for git_blame APIs

Functions

Initialize git_blame_options structure

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