Git: Refactor reset

Remove enum, provide the associated flag in the combobox.

Change-Id: I1c4751c75f59312904fe7c175678f965ac16741d
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-04-19 09:20:08 +03:00
committed by Orgad Shaneh
parent cbfeb36ce7
commit e6da908321
5 changed files with 11 additions and 37 deletions

View File

@@ -708,14 +708,7 @@ void GitPlugin::resetRepository()
LogChangeDialog dialog(true);
dialog.setWindowTitle(tr("Undo Changes to %1").arg(QDir::toNativeSeparators(topLevel)));
if (dialog.runDialog(topLevel))
switch (dialog.resetType()) {
case HardReset:
m_gitClient->hardReset(topLevel, dialog.commit());
break;
case SoftReset:
m_gitClient->softReset(topLevel, dialog.commit());
break;
}
m_gitClient->reset(topLevel, dialog.resetFlag(), dialog.commit());
}
void GitPlugin::startRebase()