From 754b8ededb0f152b914d9b141142de7440e4eb74 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 3 May 2016 22:03:01 +0300 Subject: [PATCH] Git: Suppress failure message on grep MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It fails when no results are found. Change-Id: I3390f1119457bb47fb09a95a395cb68a0dd58e82 Reviewed-by: André Hartmann --- src/plugins/git/gitgrep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/git/gitgrep.cpp b/src/plugins/git/gitgrep.cpp index b13414a0b0c..5299a5bec4f 100644 --- a/src/plugins/git/gitgrep.cpp +++ b/src/plugins/git/gitgrep.cpp @@ -152,7 +152,7 @@ public: } arguments << QLatin1String("--") << m_parameters.nameFilters; QScopedPointer command(GitPlugin::client()->createCommand(m_directory)); - command->addFlags(VcsCommand::SilentOutput); + command->addFlags(VcsCommand::SilentOutput | VcsCommand::SuppressFailMessage); command->setProgressiveOutput(true); QFutureWatcher watcher; watcher.setFuture(m_fi.future());