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

close()
item_selected()

Shows the current stash in the main view.

refresh_view()
selected_name()
selected_stash()

Returns the stash name of the currently selected stash

stash_apply()

Applies the currently selected stash

stash_remove()

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.

update_actions()
update_model()

Initiates git queries on the model and updates the view

cola.controllers.stash.stash(parent=None)

Launches a stash dialog using the provided model + view

Previous topic

cola.controllers.selectcommits – Select commits

Next topic

Miscellaneous Utility Modules

This Page