From f932cef15a1f6ece1f8c70664475cbd59214bad7 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 26 Jan 2022 10:21:35 +0200 Subject: [PATCH] Git: Adapt grep to new default coloring in Git 2.35 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id830d3341974f70e4ce6b419152d3558bba2a95f Reviewed-by: hjk Reviewed-by: André Hartmann --- src/plugins/git/gitgrep.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/git/gitgrep.cpp b/src/plugins/git/gitgrep.cpp index ea7406a0d50..f460cb9c7f3 100644 --- a/src/plugins/git/gitgrep.cpp +++ b/src/plugins/git/gitgrep.cpp @@ -161,6 +161,8 @@ public: QStringList arguments = { "-c", "color.grep.match=bold red", "-c", "color.grep=always", + "-c", "color.grep.filename=", + "-c", "color.grep.lineNumber=", "grep", "-zn", "--no-full-name" }; if (!(m_parameters.flags & FindCaseSensitively))