git_stash_foreach

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.

extern (C) nothrow @nogc
int
git_stash_foreach

Parameters

repo libgit2_d.types.git_repository*

Repository where to find the stash.

callback .git_stash_cb

Callback to invoke per found stashed state. The most recent stash state will be enumerated first.

payload void*

Extra parameter to callback function.

Return Value

Type: int

0 on success, non-zero callback return value, or error code.

Meta