VCS: Use more FilePath in ShellCommand and surroundings

Change-Id: Ie8c5fac09b45a54bcbe9a876044b653e7fccede5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
hjk
2021-08-11 10:02:58 +02:00
parent 2aaa0a2180
commit bbde6ac9bf
21 changed files with 84 additions and 83 deletions

View File

@@ -29,7 +29,11 @@
#include <coreplugin/ioutputpane.h>
namespace Utils { class CommandLine; }
namespace Utils {
class CommandLine;
class FilePath;
} // Utils
namespace VcsBase {
namespace Internal { class VcsPlugin; }
@@ -64,7 +68,7 @@ public:
// Helper to consistently format log entries for commands as
// 'Executing <dir>: <cmd> <args>'. Hides well-known password option
// arguments.
static QString msgExecutionLogEntry(const QString &workingDir,
static QString msgExecutionLogEntry(const Utils::FilePath &workingDir,
const Utils::CommandLine &command);
enum MessageStyle {
@@ -104,7 +108,7 @@ public slots:
// Append a standard-formatted entry for command execution
// (see msgExecutionLogEntry).
static void appendCommand(const QString &workingDirectory,
static void appendCommand(const Utils::FilePath &workingDirectory,
const Utils::CommandLine &command);
// Append a blue message text and pop up.