libgit2

git_stash_cb

Version:

This is a callback function you can provide to iterate over all the stashed states that will be invoked 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 to continue iterating or non-zero to stop.

Parameter To

Versions