Git: Support case-insensitive grep/pickaxe

Change-Id: Ie3da0f5cca2bd3ffa658e3adbba0b1b86a2911d9
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Orgad Shaneh
2020-02-19 21:30:52 +02:00
committed by Orgad Shaneh
parent 6d8efefbe5
commit b14351dab8
3 changed files with 16 additions and 0 deletions

View File

@@ -1062,6 +1062,9 @@ void GitClient::log(const QString &workingDirectory, const QString &fileName,
if (!pickaxeValue.isEmpty())
arguments << "-S" << pickaxeValue;
if ((!grepValue.isEmpty() || !pickaxeValue.isEmpty()) && !editor->caseSensitive())
arguments << "-i";
if (!fileName.isEmpty())
arguments << "--" << fileName;