forked from qt-creator/qt-creator
Fixes: add timeout value to git plugin
RevBy: tba
Details: - as on windows some git commands take much longer it happens fairly often, that git timeouts.
- added a timeout value to the option to let the user choose maximum timeout value (minimum is 10 seconds, maximum 5 minutes)
This commit is contained in:
@@ -49,7 +49,7 @@ public:
|
||||
ProjectExplorer::Environment &environment);
|
||||
|
||||
|
||||
void addJob(const QStringList &arguments);
|
||||
void addJob(const QStringList &arguments, int timeout);
|
||||
void execute();
|
||||
|
||||
private:
|
||||
@@ -61,9 +61,10 @@ Q_SIGNALS:
|
||||
|
||||
private:
|
||||
struct Job {
|
||||
explicit Job(const QStringList &a);
|
||||
explicit Job(const QStringList &a, int t);
|
||||
|
||||
QStringList arguments;
|
||||
int timeout;
|
||||
};
|
||||
|
||||
QStringList environment() const;
|
||||
|
||||
Reference in New Issue
Block a user