git_diff_num_deltas_of_type

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.

extern (C) nothrow @nogc
size_t
git_diff_num_deltas_of_type

Parameters

diff const(.git_diff)*

A git_diff generated by one of the above functions

type .git_delta_t

A git_delta_t value to filter the count

Return Value

Type: size_t

Count of number of deltas matching delta_t type

Meta