VCS[git]: Added git fetch

This commit is contained in:
Robert Loehning
2010-08-31 21:27:13 +02:00
parent 9f68456b65
commit b719bbda42
4 changed files with 21 additions and 0 deletions

View File

@@ -1679,6 +1679,16 @@ void GitClient::revert(const QStringList &files, bool revertStaging)
}
}
bool GitClient::synchronousFetch(const QString &workingDirectory)
{
QStringList arguments(QLatin1String("fetch"));
// Disable UNIX terminals to suppress SSH prompting.
const unsigned flags = VCSBase::VCSBasePlugin::SshPasswordPrompt|VCSBase::VCSBasePlugin::ShowStdOutInLogWindow
|VCSBase::VCSBasePlugin::ShowSuccessMessage;
const Utils::SynchronousProcessResponse resp = synchronousGit(workingDirectory, arguments, flags);
return resp.result == Utils::SynchronousProcessResponse::Finished;
}
bool GitClient::synchronousPull(const QString &workingDirectory)
{
return synchronousPull(workingDirectory, m_settings.pullRebase);