Commit af3d56f7 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Add more information in git log

My last commit makes it actually possible to activate --numstat now, that
will tell us what files have changed in a commit.
I've been able to browse all kdelibs/kdecore history in an acceptable
amount of time. Maybe it's because of my new shiny SSD...
parent a6d91086
......@@ -490,7 +490,7 @@ VcsJob* GitPlugin::log(const KUrl& localLocation,
{
DVcsJob* job = new GitJob(dotGitDirectory(localLocation), this, KDevelop::OutputJob::Silent);
job->setType(VcsJob::Log);
*job << "git" << "log" << "--date=raw" /*<< "--numstat"*/;
*job << "git" << "log" << "--date=raw" << "--numstat";
QString rev = revisionInterval(dst, src);
if(!rev.isEmpty())
*job << rev;
......@@ -504,7 +504,10 @@ VcsJob* GitPlugin::log(const KUrl& localLocation, const KDevelop::VcsRevision& r
{
DVcsJob* job = new GitJob(dotGitDirectory(localLocation), this, KDevelop::OutputJob::Silent);
job->setType(VcsJob::Log);
*job << "git" << "log" << "--date=raw" /*<< "--numstat"*/ << toRevisionName(rev, QString());
*job << "git" << "log" << "--date=raw" << "--numstat";
QString revStr = toRevisionName(rev, QString());
if(!revStr.isEmpty())
*job << revStr;
if(limit>0)
*job << QString("-%1").arg(limit);
......
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