| 348 | } |
| 349 | |
| 350 | bool GitPlugin::isVersionControlled(const QUrl &path) |
| 351 | { |
| 352 | QFileInfo fsObject(path.toLocalFile()); |
| 353 | if (!fsObject.exists()) { |
| 354 | return false; |
| 355 | } |
| 356 | if (fsObject.isDir()) { |
| 357 | return isValidDirectory(path); |
| 358 | } |
| 359 | |
| 360 | QString filename = fsObject.fileName(); |
| 361 | |
| 362 | QStringList otherFiles = getLsFiles(fsObject.dir(), QStringList(QStringLiteral("--")) << filename, KDevelop::OutputJob::Silent); |
| 363 | return !otherFiles.empty(); |
| 364 | } |
| 365 | |
| 366 | VcsJob* GitPlugin::init(const QUrl &directory) |
| 367 | { |
no test coverage detected