libgit2

git_patch_num_hunks

Version:

Get the number of hunks in a patch

Signature

size_t git_patch_num_hunks(const git_patch *patch);

Parameters

In
patch

The patch in which to get the number of hunks.

Returns

size_t

The number of hunks of the patch.

Versions