diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-08-06 15:14:54 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-08-06 17:23:25 +0200 |
commit | a05ea7113368a807057410b84d7ef21409d818af (patch) | |
tree | 0d0382590823bd06ec7ca7ee3a6faa719f966b8b /src/plugins/git/gitplugin.cpp | |
parent | ec247074d4a2b7905724bf847ed36c736dd7cf73 (diff) | |
download | qt-creator-a05ea7113368a807057410b84d7ef21409d818af.tar.gz |
Git: Use a single filename for log
The list always contains a single entry (or none) anyway
Change-Id: I567b622efd42dd6f676bebb92fbf1c8774bd80ff
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/git/gitplugin.cpp')
-rw-r--r-- | src/plugins/git/gitplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index 6801a97390..1692b780d2 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -744,7 +744,7 @@ void GitPlugin::diffCurrentProject() { const VcsBase::VcsBasePluginState state = currentState(); QTC_ASSERT(state.hasProject(), return); - m_gitClient->diff(state.currentProjectTopLevel(), state.relativeCurrentProject()); + m_gitClient->diff(state.currentProjectTopLevel(), QStringList(state.relativeCurrentProject())); } void GitPlugin::diffRepository() @@ -758,7 +758,7 @@ void GitPlugin::logFile() { const VcsBase::VcsBasePluginState state = currentState(); QTC_ASSERT(state.hasFile(), return); - m_gitClient->log(state.currentFileTopLevel(), QStringList(state.relativeCurrentFile()), true); + m_gitClient->log(state.currentFileTopLevel(), state.relativeCurrentFile(), true); } void GitPlugin::blameFile() |