

def pop_or_apply_from_panel(self, action):
    repo = self.get_repo()
    if (not repo):
        return
    stashes = self.get_stashes(repo)
    if (not stashes):
        return sublime.error_message('No stashes. Use the Git: Stash command to stash changes')
    callback = self.pop_or_apply_callback(repo, action, panel)
    panel = []
    for (name, title) in stashes:
        panel.append([title, ('stash@{%s}' % name)])
    self.window.show_quick_panel(panel, callback)

dataset/ETHPy150Open SublimeGit/SublimeGit/sgit/stash.py GitStashWindowCmd.pop_or_apply_from_panel/VarMisuse@67/108 `stashes`->`panel`