libgit2

git_blame_file

Version:

Get the blame for a single file.

Signature

int git_blame_file(git_blame **out, git_repository *repo, const char *path, git_blame_options *options);

Parameters

In
out

pointer that will receive the blame object

In
repo

repository whose history is to be walked

const char *
In
path

path to file to consider

In
options

options for the blame operation. If NULL, this is treated as though GIT_BLAME_OPTIONS_INIT were passed.

Returns

int

0 on success, or an error code. (use git_error_last for information about the error.)

Versions