forked from qt-creator/qt-creator
Git: Prepend -e to the pattern on grep
This fixes searching for patterns that start with dash. Change-Id: I824f64151842008a034757de6a00fd8a6cc46d72 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
5250ed4bbc
commit
148e793dec
@@ -154,7 +154,7 @@ public:
|
|||||||
arguments << "-P";
|
arguments << "-P";
|
||||||
else
|
else
|
||||||
arguments << "-F";
|
arguments << "-F";
|
||||||
arguments << m_parameters.text;
|
arguments << "-e" << m_parameters.text;
|
||||||
GitGrepParameters params = m_parameters.extensionParameters.value<GitGrepParameters>();
|
GitGrepParameters params = m_parameters.extensionParameters.value<GitGrepParameters>();
|
||||||
if (!params.ref.isEmpty()) {
|
if (!params.ref.isEmpty()) {
|
||||||
arguments << params.ref;
|
arguments << params.ref;
|
||||||
|
|||||||
Reference in New Issue
Block a user