private function handleCommit()
{
if ($this->outputter->isEmpty()) {
return;
}
switch ($this->config->getCommitAuto()) {
case 'never':
return;
case 'ask':
if ($this->io->askConfirmation('<info>Would you like to commit the update? </info>[<comment>no</comment>]: ', false)) {
$this->doCommit();
}
break;
case 'always':
$this->doCommit();
}
}