| 217 | } |
| 218 | |
| 219 | bool GitClient::checkRepositoryExist(const QString &filePath, QString *repository) |
| 220 | { |
| 221 | for (const auto &cache : d->gitRepositoryCache) { |
| 222 | if (filePath.startsWith(cache)) { |
| 223 | if (repository) |
| 224 | *repository = cache; |
| 225 | return true; |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | auto ret = d->findRepository(filePath); |
| 230 | if (!ret.isEmpty()) { |
| 231 | d->gitRepositoryCache << ret; |
| 232 | if (repository) |
| 233 | *repository = ret; |
| 234 | return true; |
| 235 | } |
| 236 | |
| 237 | return false; |
| 238 | } |
| 239 | |
| 240 | bool GitClient::setupInstantBlame(const QString &filePath) |
| 241 | { |
no test coverage detected