forked from qt-creator/qt-creator
Git: Rename 'Undo uncommitted repository changes' to 'Reset...'.
'Reset' is in sync with the command line option and more appropriate to the functionality after the introduction of the history dialog. Change-Id: I2328c7137089a5f372b59b4db7074753a16ecbdf Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com>
This commit is contained in:
@@ -396,8 +396,8 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
globalcontext, true, &GitClient::status);
|
||||
|
||||
createRepositoryAction(gitContainer,
|
||||
tr("Undo Uncommitted Changes..."), Core::Id("Git.UndoRepository"),
|
||||
globalcontext, false, SLOT(undoRepositoryChanges()));
|
||||
tr("Reset..."), Core::Id("Git.Reset"),
|
||||
globalcontext, false, SLOT(resetRepository()));
|
||||
|
||||
|
||||
createRepositoryAction(gitContainer,
|
||||
@@ -623,7 +623,7 @@ void GitPlugin::undoUnstagedFileChanges()
|
||||
undoFileChanges(false);
|
||||
}
|
||||
|
||||
void GitPlugin::undoRepositoryChanges()
|
||||
void GitPlugin::resetRepository()
|
||||
{
|
||||
const VcsBase::VcsBasePluginState state = currentState();
|
||||
QTC_ASSERT(state.hasTopLevel(), return);
|
||||
|
@@ -112,7 +112,7 @@ private slots:
|
||||
void logProject();
|
||||
void undoFileChanges(bool revertStaging = true);
|
||||
void undoUnstagedFileChanges();
|
||||
void undoRepositoryChanges();
|
||||
void resetRepository();
|
||||
void stageFile();
|
||||
void unstageFile();
|
||||
void cleanProject();
|
||||
|
Reference in New Issue
Block a user