git_diff_get_delta

Return the diff delta for an entry in the diff list.

The git_diff_delta pointer points to internal data and you do not have to release it when you are done with it. It will go away when the * git_diff (or any associated git_patch) goes away.

Note that the flags on the delta related to whether it has binary content or not may not be set if there are no attributes set for the file and there has been no reason to load the file data at this point. For now, if you need those flags to be up to date, your only option is to either use git_diff_foreach or create a git_patch.

extern (C) nothrow @nogc
git_diff_get_delta
(
const(.git_diff)* diff
,
size_t idx
)

Parameters

diff const(.git_diff)*

Diff list object

idx size_t

Index into diff list

Return Value

Type: const(.git_diff_delta)*

Pointer to git_diff_delta (or null if idx out of range)

Meta