Report termination of git pull/push (which was missing feedback).

This commit is contained in:
Friedemann Kleint
2009-04-09 10:05:53 +02:00
parent 3d55c45e2c
commit 3a5b6825a7
4 changed files with 54 additions and 5 deletions

View File

@@ -42,6 +42,11 @@ class GitCommand : public QObject
Q_DISABLE_COPY(GitCommand)
Q_OBJECT
public:
// Where to report command termination with exit code if desired
enum TerminationReportMode { NoReport,
ReportStdout, // This assumes UTF8
ReportStderr };
explicit GitCommand(const QString &binaryPath,
const QString &workingDirectory,
ProjectExplorer::Environment &environment);
@@ -54,6 +59,10 @@ public:
// Workaround until all relevant commands support "--no-color".
static void removeColorCodes(QByteArray *data);
// Report command termination with exit code
TerminationReportMode reportTerminationMode() const;
void setTerminationReportMode(TerminationReportMode m);
private:
void run();
@@ -74,6 +83,7 @@ private:
const QStringList m_environment;
QList<Job> m_jobs;
TerminationReportMode m_reportTerminationMode;
};
} // namespace Internal