GrumPHP\Event\Subscriber\StashUnstagedChangesSubscriber::doPopStash PHP Method

doPopStash() private method

private doPopStash ( ) : void
return void
    private function doPopStash()
    {
        if (!$this->stashIsApplied) {
            return;
        }
        try {
            $this->io->write('<fg=yellow>Reapplying unstaged changes from stash.</fg=yellow>');
            $this->repository->run('stash', ['pop', '--quiet']);
        } catch (Exception $e) {
            throw new RuntimeException('The stashed changes could not be applied. Please run `git stash pop` manually!' . 'More info: ' . $e->__toString(), 0, $e);
        }
        $this->stashIsApplied = false;
    }