git_stash_save

Save the local modifications to a new stash.

extern (C) nothrow @nogc
int
git_stash_save

Parameters

out_ libgit2_d.oid.git_oid*

Object id of the commit containing the stashed state. This commit is also the target of the direct reference refs/stash.

repo libgit2_d.types.git_repository*

The owning repository.

stasher const(libgit2_d.types.git_signature)*

The identity of the person performing the stashing.

message const(char)*

Optional description along with the stashed state.

flags uint

Flags to control the stashing process. (see GIT_STASH_* above)

Return Value

Type: int

0 on success, git_error_code.GIT_ENOTFOUND where there's nothing to stash, or error code.

Meta