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 git_diff_hunk of hunk
Output count of total lines in this hunk
Input pointer to patch object
Input index of hunk to get information about
0 on success, git_error_code.GIT_ENOTFOUND if hunk_idx out of range, <0 on error
See Implementation
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.