libgit2

git_index_matched_path_cb

Version:

Callback for APIs that add/remove/update files matching pathspec

Signature

typedef int git_index_matched_path_cb(const char *path, const char *matched_pathspec, void *payload);

Parameters

const char *
In
path

the path

const char *
In
matched_pathspec

the given pathspec

void *
In
payload

the user-specified payload

Returns

int

0 to continue with the index operation, positive number to skip this file for the index operation, negative number on failure

Parameter To

Versions