dulwich.stash module

Stash handling.

class dulwich.stash.Stash(repo, ref=b'refs/stash')

Bases: object

A Git stash.

Note that this doesn’t currently update the working tree.

drop(index)

Drop entry with specified index.

classmethod from_repo(repo)

Create a new stash from a Repo object.

pop(index)
push(committer=None, author=None, message=None)

Create a new stash.

Parameters
  • committer – Optional committer name to use

  • author – Optional author name to use

  • message – Optional commit message

stashes()