MCPcopy Create free account
hub / github.com/KDE/kdevelop / fileChanged

Method fileChanged

plugins/git/gitplugin.cpp:1826–1839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1824}
1825
1826void 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
1841void GitPlugin::delayedBranchChanged()
1842{

Callers

nothing calls this directly

Calls 2

endMethod · 0.45

Tested by

no test coverage detected