diff options
| author | Thiago Macieira <[email protected]> | 2016-07-18 17:34:25 -0700 |
|---|---|---|
| committer | Orgad Shaneh <[email protected]> | 2016-07-19 05:23:08 +0000 |
| commit | cdf1c924a3800dea8f6d3543bbc4f4162de7c0a2 (patch) | |
| tree | 74ddc384f2e940a660507a2f7c12e09ee412bafa /src/plugins/git/gitgrep.cpp | |
| parent | c0da4e7d809fc50f8ba940005ea8901d415323d7 (diff) | |
Git: make git grep not duplicate leading path names
Make sure we pass --no-full-name to counter the grep.fullname=true
option that the user may have set. Otherwise, Creator will complain that
it can't find the files that matched the search terms if the search
directory was not the root of the Git repository.
Change-Id: I149e0540c00745fe8119fffd14628a3d7887e55e
Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/git/gitgrep.cpp')
| -rw-r--r-- | src/plugins/git/gitgrep.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/git/gitgrep.cpp b/src/plugins/git/gitgrep.cpp index 5299a5bec4f..599b9170b4f 100644 --- a/src/plugins/git/gitgrep.cpp +++ b/src/plugins/git/gitgrep.cpp @@ -135,6 +135,7 @@ public: QStringList arguments; arguments << QLatin1String("-c") << QLatin1String("color.grep.match=bold red") << QLatin1String("grep") << QLatin1String("-zn") + << QLatin1String("--no-full-name") << QLatin1String("--color=always"); if (!(m_parameters.flags & FindCaseSensitively)) arguments << QLatin1String("-i"); |
