Use defined codes and strings.

This commit is contained in:
2025-02-21 12:37:00 +01:00
parent 5d3849dcf3
commit 96e3b606ef
3 changed files with 26 additions and 2 deletions

View File

@@ -11,9 +11,14 @@ class GitCommand {
bool exec(QStringList const &options, int start_timeout = 100000,
int finish_timeout = 100000);
QString m_commandResult{};
public:
GitCommand();
void resetCommandResult() { m_commandResult.clear(); }
QString const &commandResult() const { return m_commandResult; }
bool status(int start_timeout = 100000, int finish_timeout = 100000);
bool check(int start_timeout = 100000, int finish_timeout = 100000);