libgit2

git_diff_notify_cb

Version:

Diff notification callback function.

The callback will be called for each file, just before the git_delta_t gets inserted into the diff.

When the callback:

  • returns < 0, the diff process will be aborted.
  • returns > 0, the delta will not be inserted into the diff, but the diff process continues.
  • returns 0, the delta is inserted into the diff, and the diff process continues.

Signature

typedef int git_diff_notify_cb(const git_diff *, const git_diff_delta *, const char *, void *);

Parameters

const char *
In
void *
In

Versions