forked from qt-creator/qt-creator
Git: Cleanup gitExecutable()
Using expected removes a bunch of handling code. Change-Id: Id524912d82aa693fbb39c7e7fa34abd77153f92e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
||||
mutable Utils::FilePath resolvedBinPath;
|
||||
mutable bool tryResolve = true;
|
||||
|
||||
Utils::FilePath gitExecutable(bool *ok = nullptr, QString *errorMessage = nullptr) const;
|
||||
Utils::expected_str<Utils::FilePath> gitExecutable() const;
|
||||
|
||||
static QString trIgnoreWhitespaceChanges();
|
||||
static QString trIgnoreLineMoves();
|
||||
|
||||
Reference in New Issue
Block a user