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 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