Add helper function worker(), returning the worker-object.

This commit is contained in:
Gerhard Hoffmann 2023-10-30 14:56:19 +01:00
parent 5efac2619b
commit 7dc04c4422

View File

@ -43,6 +43,9 @@ class GitClient : public QObject {
bool gitCloneAndCheckoutBranch();
Worker *worker() { return m_worker; }
Worker const *worker() const { return m_worker; }
std::optional<QString> gitPull();
std::optional<QStringList> gitDiff(QString const &commit);
std::optional<QStringList> gitMerge();