git: Reuse more code from vcsbase

Change-Id: I873d2caa2cead5c339eec887a5fcdef4d33bec24
Reviewed-on: http://codereview.qt-project.org/6071
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Tobias Hunger
2011-10-05 10:35:24 +00:00
parent f6068c1ff9
commit 363b230abf
15 changed files with 359 additions and 592 deletions

View File

@@ -173,22 +173,28 @@ public:
// triggered by file watchers).
};
static Utils::SynchronousProcessResponse
runVCS(const QString &workingDir,
const QString &binary,
const QStringList &arguments,
int timeOutMS,
QProcessEnvironment env,
unsigned flags = 0,
QTextCodec *outputCodec = 0);
static Utils::SynchronousProcessResponse runVCS(const QString &workingDir,
const QString &binary,
const QStringList &arguments,
int timeOutMS,
QProcessEnvironment env,
unsigned flags = 0,
QTextCodec *outputCodec = 0);
static Utils::SynchronousProcessResponse
runVCS(const QString &workingDir,
const QString &binary,
const QStringList &arguments,
int timeOutMS,
unsigned flags = 0,
QTextCodec *outputCodec = 0);
static Utils::SynchronousProcessResponse runVCS(const QString &workingDir,
const QString &binary,
const QStringList &arguments,
int timeOutMS,
unsigned flags = 0,
QTextCodec *outputCodec = 0);
// Make sure to not pass through the event loop at all:
static bool runFullySynchronous(const QString &workingDirectory,
const QString &binary,
const QStringList &arguments,
const QProcessEnvironment &env,
QByteArray* outputText,
QByteArray *errorText, int timeoutMS, bool logCommandToWindow);
// Utility to run the 'patch' command
static bool runPatch(const QByteArray &input, const QString &workingDirectory = QString(),