forked from qt-creator/qt-creator
VCS[git]: Added git fetch
This commit is contained in:
@@ -437,6 +437,10 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
globalcontext, true, SLOT(stash()));
|
||||
actionCommand.first->setToolTip(tr("Saves the current state of your work and resets the repository."));
|
||||
|
||||
createRepositoryAction(actionManager, gitContainer,
|
||||
tr("Fetch"), QLatin1String("Git.Fetch"),
|
||||
globalcontext, true, SLOT(fetch()));
|
||||
|
||||
createRepositoryAction(actionManager, gitContainer,
|
||||
tr("Pull"), QLatin1String("Git.Pull"),
|
||||
globalcontext, true, SLOT(pull()));
|
||||
@@ -760,6 +764,11 @@ bool GitPlugin::submitEditorAboutToClose(VCSBase::VCSBaseSubmitEditor *submitEdi
|
||||
return closeEditor;
|
||||
}
|
||||
|
||||
void GitPlugin::fetch()
|
||||
{
|
||||
m_gitClient->synchronousFetch(currentState().topLevel());
|
||||
}
|
||||
|
||||
void GitPlugin::pull()
|
||||
{
|
||||
const VCSBase::VCSBasePluginState state = currentState();
|
||||
|
Reference in New Issue
Block a user