We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dcd759b + 6d8ecf0 commit 67dd314Copy full SHA for 67dd314
include/git2/patch.h
@@ -191,7 +191,7 @@ GIT_EXTERN(int) git_patch_get_hunk(
191
*
192
* @param patch The git_patch object
193
* @param hunk_idx Index of the hunk
194
- * @return Number of lines in hunk or -1 if invalid hunk index
+ * @return Number of lines in hunk or GIT_ENOTFOUND if invalid hunk index
195
*/
196
GIT_EXTERN(int) git_patch_num_lines_in_hunk(
197
const git_patch *patch,
0 commit comments