Thanks to visit codestin.com Credit goes to libgit2.org
Get an arbitrary header field
the buffer to fill
the commit to look in
the header field to return
0 on succeess, GIT_ENOTFOUND if the field does not exist, or an error code