forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
cbfeb36ce7
commit
e6da908321
@@ -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()
|
||||
|
Reference in New Issue
Block a user