Get the information about a hunk in a patch
Given a patch and a hunk index into the patch, this returns detailed information about that hunk. Any of the output pointers can be passed as NULL if you don't care about that particular piece of information.
Output pointer to header string for hunk. Unlike the content pointer for each line, this will be NUL-terminated
Output value of characters in header string
Output count of total lines in this hunk
Input index of hunk to get information about
0 on success, GIT_ENOTFOUND if hunk_idx out of range, < 0 on error