Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 49648b92 authored by Christoph Cullmann's avatar Christoph Cullmann

support git worktree checkouts

BUG: 374478

CHANGELOG: Auto-detect git worktree checkouts by allowing .git to be a file, too
parent 4903dc5c
......@@ -247,8 +247,8 @@ void KateProjectPlugin::slotDirectoryChanged(const QString &path)
KateProject* KateProjectPlugin::detectGit(const QDir &dir)
{
if (m_autoGit && dir.exists(GitFolderName) && QFileInfo(dir, GitFolderName).isDir()) {
// allow .git as dir and file (file for git worktree stuff, https://git-scm.com/docs/git-worktree)
if (m_autoGit && dir.exists(GitFolderName)) {
return createProjectForRepository(QStringLiteral("git"), dir);
}
......
Markdown is supported
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