| 1824 | } |
| 1825 | |
| 1826 | void GitPlugin::fileChanged(const QString& file) |
| 1827 | { |
| 1828 | const auto it = findWatchedFile(file); |
| 1829 | if (it == m_watchedFiles.end()) { |
| 1830 | // KDirWatch's internal QueuedConnection can cause this if the file just became unwatched |
| 1831 | qCDebug(PLUGIN_GIT) << "an unwatched file changed" << file; |
| 1832 | return; |
| 1833 | } |
| 1834 | qCDebug(PLUGIN_GIT) << "a watched file changed" << file; |
| 1835 | |
| 1836 | //We need to delay the emitted signal, otherwise the branch hasn't change yet |
| 1837 | //and the repository is not functional |
| 1838 | it->scheduleDelayedBranchChanged(this); |
| 1839 | } |
| 1840 | |
| 1841 | void GitPlugin::delayedBranchChanged() |
| 1842 | { |
nothing calls this directly
no test coverage detected