| 228 | } |
| 229 | |
| 230 | bool GitPlugin::hasStashes(const QDir& repository) |
| 231 | { |
| 232 | if (auto *job = qobject_cast<DVcsJob*>(gitStash(repository, QStringList(QStringLiteral("list")), KDevelop::OutputJob::Silent))) { |
| 233 | return !emptyOutput(job); |
| 234 | } |
| 235 | Q_ASSERT(false); // gitStash should always return a DVcsJob ! |
| 236 | return false; |
| 237 | } |
| 238 | |
| 239 | bool GitPlugin::hasModifications(const QDir& d) |
| 240 | { |