git_stash_pop

Apply a single stashed state from the stash list and remove it from the list if successful.

extern (C) nothrow @nogc
int
git_stash_pop

Parameters

repo libgit2_d.types.git_repository*

The owning repository.

index size_t

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

options const(.git_stash_apply_options)*

Optional options to control how stashes are applied.

Return Value

Type: int

0 on success, git_error_code.GIT_ENOTFOUND if there's no stashed state for the given index, or error code. (see git_stash_apply() above for details)

Meta