Git: Suppress failure message on grep

It fails when no results are found.

Change-Id: I3390f1119457bb47fb09a95a395cb68a0dd58e82
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Orgad Shaneh
2016-05-03 22:03:01 +03:00
committed by Orgad Shaneh
parent 5afd2d550e
commit 754b8ededb

View File

@@ -152,7 +152,7 @@ public:
}
arguments << QLatin1String("--") << m_parameters.nameFilters;
QScopedPointer<VcsCommand> command(GitPlugin::client()->createCommand(m_directory));
command->addFlags(VcsCommand::SilentOutput);
command->addFlags(VcsCommand::SilentOutput | VcsCommand::SuppressFailMessage);
command->setProgressiveOutput(true);
QFutureWatcher<FileSearchResultList> watcher;
watcher.setFuture(m_fi.future());