

def run(self):
    repo = self.get_repo()
    if (not repo):
        return
    snapshot = time.strftime('Snapshot at %Y-%m-%d %H:%M:%S')
    self.git(['stash', 'save', '--', snapshot], cwd=repo)
    self.git(['stash', 'apply', '-q', 'stash@{0}'], cwd=repo)
    self.window.run_command('git_status', {
        'refresh_only': True,
    })

dataset/ETHPy150Open SublimeGit/SublimeGit/sgit/stash.py GitSnapshotCommand.run/original