Add hunk callback parameter to git_apply__patch to allow hunks to be skipped.
git_buf_free
git_buf_dispose