summaryrefslogtreecommitdiff
path: root/src/plugins/git
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2015-04-20 15:42:16 +0300
committerOrgad Shaneh <orgads@gmail.com>2015-04-20 14:36:47 +0000
commit9e1e11db60995bf4d826b1424802ce96a10e064f (patch)
tree744d5d636470f1cb18f1da91f9fdcaa2e95e18bd /src/plugins/git
parent2f3d2a249069e940a14b557214cb53629b725493 (diff)
downloadqt-creator-9e1e11db60995bf4d826b1424802ce96a10e064f.tar.gz
Git: Detect renames and copies on diff
Change-Id: I96e822df7eb5a0fc85108163a7ecf7b5e2a98d58 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Diffstat (limited to 'src/plugins/git')
-rw-r--r--src/plugins/git/gitclient.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp
index 7b35a61dc0..18f2c0241a 100644
--- a/src/plugins/git/gitclient.cpp
+++ b/src/plugins/git/gitclient.cpp
@@ -181,6 +181,7 @@ QStringList BaseController::addConfigurationArguments(const QStringList &args) c
QStringList realArgs;
realArgs << args.at(0);
realArgs << QLatin1String("-m"); // show diff agains parents instead of merge commits
+ realArgs << QLatin1String("-M") << QLatin1String("-C"); // Detect renames and copies
realArgs << QLatin1String("--first-parent"); // show only first parent
if (ignoreWhitespace())
realArgs << QLatin1String("--ignore-space-change");