libgit2

stash

Version:

Stashes stores some uncommitted state in the repository; generally this allows a user to stash some changes so that they can restore the working directory to an unmodified state. This can allow a developer to work on two different changes in parallel.

Structs

Stash save options structure

Stash application options structure

Macros

Enums

Stash flags

Stash application flags

Stash apply progression states

Callbacks

Stash application progress notification function Return 0 to continue processing, or a negative value to abort the stash application.

This is a callback function you can provide to iterate over all the stashed states that will be invoked per entry

Functions

Save the local modifications to a new stash

Initialize git_stash_save_options structure

Save the local modifications to a new stash, with options

Initialize git_stash_apply_options structure

Apply a single stashed state from the stash list

Loop over all the stashed states and issue a callback for each one

Remove a single stashed state from the stash list

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