libgit2

git_stash_foreach

Version:

Loop over all the stashed states and issue a callback for each one.

If the callback returns a non-zero value, this will stop looping.

Signature

int git_stash_foreach(git_repository *repo, git_stash_cb callback, void *payload);

Parameters

In
repo

Repository where to find the stash.

In
callback
void *
In
payload

Extra parameter to callback function.

Returns

int

0 on success, GIT_EUSER on non-zero callback, or error code

Versions