Commit e460a8cb authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Git: Fix inotify_add warnings

Dont try to watch submodule index files. For now we dont support it
parent 903e9e0c
......@@ -63,6 +63,15 @@ public:
return m_activeGitDirPath;
}
QString indexPath() const
{
if (m_activeGitDirPath == m_topLevelGitPath) {
return m_activeGitDirPath + QStringLiteral(".git/index");
}
// Should we support submodules?
return QString();
}
private:
/** These ends with "/", always remember this */
......
......@@ -791,7 +791,7 @@ void KateProjectPluginView::slotUpdateStatus(bool visible)
if (auto widget = static_cast<GitWidget *>(m_stackedGitViews->currentWidget())) {
// To support separate-git-dir always use dotGitPath
// We need to add the path every time again because it's always a different file
m_gitChangedWatcher.addPath(widget->dotGitPath() + QStringLiteral(".git/index"));
m_gitChangedWatcher.addPath(widget->indexPath());
widget->updateStatus();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment