libgit2

git_diff_num_deltas_of_type

Version:

Query how many diff deltas are there in a diff filtered by type.

This works just like git_diff_entrycount() with an extra parameter that is a git_delta_t and returns just the count of how many deltas match that particular type.

Signature

size_t git_diff_num_deltas_of_type(const git_diff *diff, git_delta_t type);

Parameters

In
diff

A git_diff generated by one of the above functions

In
type

A git_delta_t value to filter the count

Returns

size_t

Count of number of deltas matching delta_t type

Versions