Commit cdf1c924 authored by Thiago Macieira's avatar Thiago Macieira Committed by Orgad Shaneh
Browse files

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's avatarOrgad Shaneh <>
parent c0da4e7d
......@@ -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");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment