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

Control recursion for git add and commit

parent 67cbe37b
...@@ -268,7 +268,7 @@ VcsJob* GitPlugin::add(const KUrl::List& localLocations, KDevelop::IBasicVersion ...@@ -268,7 +268,7 @@ VcsJob* GitPlugin::add(const KUrl::List& localLocations, KDevelop::IBasicVersion
return errorsFound(i18n("Did not specify the list of files"), OutputJob::Verbose); return errorsFound(i18n("Did not specify the list of files"), OutputJob::Verbose);
DVcsJob* job = new DVcsJob(urlDir(localLocations), this); DVcsJob* job = new DVcsJob(urlDir(localLocations), this);
*job << "git" << "add" << "--" << localLocations; *job << "git" << "add" << "--" << (recursion == IBasicVersionControl::Recursive ? localLocations : preventRecursion(localLocations));
return job; return job;
} }
...@@ -327,7 +327,7 @@ VcsJob* GitPlugin::commit(const QString& message, ...@@ -327,7 +327,7 @@ VcsJob* GitPlugin::commit(const QString& message,
DVcsJob* job = new DVcsJob(dotGitDirectory(localLocations.front()), this); DVcsJob* job = new DVcsJob(dotGitDirectory(localLocations.front()), this);
*job << "git" << "commit" << "-m" << message; *job << "git" << "commit" << "-m" << message;
*job << "--" << localLocations; *job << "--" << (recursion == IBasicVersionControl::Recursive ? localLocations : preventRecursion(localLocations));
return job; return job;
} }
......
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