1 | #include "GitAsyncProcess.h" |
---|---|
2 | |
3 | GitAsyncProcess::GitAsyncProcess(const QString &workingDir) |
4 | : AGitProcess(workingDir) |
5 | { |
6 | } |
7 | |
8 | GitExecResult GitAsyncProcess::run(const QString &command) |
9 | { |
10 | const auto ret = execute(command); |
11 | |
12 | return { ret, ""}; |
13 | } |
14 | |
15 | void GitAsyncProcess::onFinished(int code, QProcess::ExitStatus exitStatus) |
16 | { |
17 | AGitProcess::onFinished(code, exitStatus); |
18 | |
19 | if (!mCanceling) |
20 | emit signalDataReady({ !mRealError, mRunOutput }); |
21 | |
22 | deleteLater(); |
23 | } |
24 |