libgit2

git_submodule_cb

Version:

Function pointer to receive each submodule

Signature

typedef int git_submodule_cb(git_submodule *sm, const char *name, void *payload);

Parameters

In
sm

git_submodule currently being visited

const char *
In
name

name of the submodule

void *
In
payload

value you passed to the foreach function as payload

Returns

int

0 on success or error code

Parameter To

Versions