libgit2

git_stash_drop

Version:

Remove a single stashed state from the stash list.

Signature

int git_stash_drop(git_repository *repo, size_t index);

Parameters

In
repo

The owning repository.

size_t
In
index

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

Returns

int

0 on success, GIT_ENOTFOUND if there's no stashed state for the given index, or error code.

Versions