Fixes: Using a git configuration with colored output breaks much of the git plugin.

Task:     248067
Details:  Use --no-color where appropriate. Use a hack to remove color sequences from output for "status" since it does not support the option as of git 1.6.2.
This commit is contained in:
Friedemann Kleint
2009-03-17 12:36:55 +01:00
parent 8e0fb8ba9a
commit 465bf149d5
5 changed files with 58 additions and 16 deletions

View File

@@ -50,6 +50,10 @@ public:
void addJob(const QStringList &arguments, int timeout);
void execute();
// Clean output from carriage return and ANSI color codes.
// Workaround until all relevant commands support "--no-color".
static void removeColorCodes(QByteArray *data);
private:
void run();