libgit2

git_apply_delta_cb

Version:

When applying a patch, callback that will be made per delta (file).

When the callback:

  • returns < 0, the apply process will be aborted.
  • returns > 0, the delta will not be applied, but the apply process continues
  • returns 0, the delta is applied, and the apply process continues.

Signature

typedef int git_apply_delta_cb(const git_diff_delta *delta, void *payload);

Parameters

In
delta

The delta to be applied

void *
In
payload

User-specified payload

Returns

int

0 if the delta is applied, < 0 if the apply process will be aborted or > 0 if the delta will not be applied.

Versions