diff options
author | Friedemann Kleint <[email protected]> | 2010-06-16 09:05:50 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2010-06-16 09:05:50 +0200 |
commit | 6793f1f962214f51006d091e6bc369b6e01528a2 (patch) | |
tree | a8c808419e291074a9b2c963d1c5f88883eebe9d /src/plugins/git/gitclient.cpp | |
parent | f96efa07e1927bd02132644aef93371111383ea8 (diff) |
VCS[git]: Add arguments setting for gitk, add to locator.
Task-number: QTCREATORBUG-1577
Diffstat (limited to 'src/plugins/git/gitclient.cpp')
-rw-r--r-- | src/plugins/git/gitclient.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index b735007ec39..ef098ccb05c 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -1272,12 +1272,14 @@ void GitClient::launchGitK(const QString &workingDirectory) #ifdef Q_OS_WIN // Launch 'wish' shell from git binary directory with the gitk located there const QString binary = gitBinDirectory + QLatin1String("/wish"); - const QStringList arguments(gitBinDirectory + QLatin1String("/gitk")); + QStringList arguments(gitBinDirectory + QLatin1String("/gitk")); #else // Simple: Run gitk from binary path const QString binary = gitBinDirectory + QLatin1String("/gitk"); - const QStringList arguments; + QStringList arguments; #endif + if (!m_settings.gitkOptions.isEmpty()) + arguments.append(m_settings.gitkOptions.split(QLatin1Char(' '))); outwin->appendCommand(workingDirectory, binary, arguments); // This should always use QProcess::startDetached (as not to kill // the child), but that does not have an environment parameter. |