libgit2

git_stash_cb

Version:

When iterating over all the stashed states, callback that will be issued per entry.

Signature

typedef int git_stash_cb(size_t index, const char *message, const git_oid *stash_id, void *payload);

Parameters

size_t
In
index

The position within the stash list. 0 points to the most recent stashed state.

const char *
In
message

The stash message.

In
stash_id

The commit oid of the stashed state.

void *
In
payload

Extra parameter to callback function.

Returns

int

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

Parameter To

Versions