libgit2

git_commit_header_field

Version:

Get an arbitrary header field

Signature

int git_commit_header_field(git_buf *out, const git_commit *commit, const char *field);

Parameters

In
out

the buffer to fill

In
commit

the commit to look in

const char *
In
field

the header field to return

Returns

int

0 on succeess, GIT_ENOTFOUND if the field does not exist, or an error code

Versions