Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
e460a8cb
Commit
e460a8cb
authored
Aug 16, 2022
by
Waqar Ahmed
Browse files
Git: Fix inotify_add warnings
Dont try to watch submodule index files. For now we dont support it
parent
903e9e0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
addons/project/gitwidget.h
View file @
e460a8cb
...
...
@@ -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 */
...
...
addons/project/kateprojectpluginview.cpp
View file @
e460a8cb
...
...
@@ -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
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment