cola.controllers.stash – Stash operations

This controller handles the stash dialog.

class cola.controllers.stash.StashController(model, view)

The StashController is the brains behind the ‘Stash’ dialog

selected_stash()

Returns the stash name of the currently selected stash

stash_apply()

Applies the currently selected stash

stash_clear()

Clears all stashes

stash_drop()

Drops the currently selected stash

stash_save()

Saves the worktree in a stash

This prompts the user for a stash name and creates a git stash named accordingly.

stash_show()

Shows the current stash in the main view.

update_model()

Initiates git queries on the model and updates the view

cola.controllers.stash.stash()

Launches a stash dialog using the provided model + view

Previous topic

cola.controllers.selectcommits – Select commits

Next topic

cola.controllers.util – Miscellaneous utilities

This Page