git_commit_header_field

Get an arbitrary header field

extern (C) nothrow @nogc
int
git_commit_header_field

Parameters

out_ libgit2_d.buffer.git_buf*

the buffer to fill; existing content will be overwritten

commit const(libgit2_d.types.git_commit)*

the commit to look in

field const(char)*

the header field to return

Return Value

Type: int

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

Meta