forked from qt-creator/qt-creator
Fixes: Suppress colors for git diff project, class names in widget template
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>%CLASS%Class</class>
|
<class>%CLASS%</class>
|
||||||
<widget class="%BASECLASS%" name="%CLASS%" >
|
<widget class="%BASECLASS%" name="%CLASS%" >
|
||||||
<property name="geometry" >
|
<property name="geometry" >
|
||||||
<rect>
|
<rect>
|
||||||
|
|||||||
@@ -235,9 +235,9 @@ void GitClient::diff(const QString &workingDirectory,
|
|||||||
if (Git::Constants::debug)
|
if (Git::Constants::debug)
|
||||||
qDebug() << "diff" << workingDirectory << fileName;
|
qDebug() << "diff" << workingDirectory << fileName;
|
||||||
QStringList arguments;
|
QStringList arguments;
|
||||||
arguments << QLatin1String("diff");
|
arguments << QLatin1String("diff") << QLatin1String(noColorOption);
|
||||||
if (!fileName.isEmpty())
|
if (!fileName.isEmpty())
|
||||||
arguments << diffArgs << QLatin1String(noColorOption) << QLatin1String("--") << fileName;
|
arguments << diffArgs << QLatin1String("--") << fileName;
|
||||||
|
|
||||||
const QString kind = QLatin1String(Git::Constants::GIT_DIFF_EDITOR_KIND);
|
const QString kind = QLatin1String(Git::Constants::GIT_DIFF_EDITOR_KIND);
|
||||||
const QString title = tr("Git Diff %1").arg(fileName);
|
const QString title = tr("Git Diff %1").arg(fileName);
|
||||||
|
|||||||
Reference in New Issue
Block a user