Git - Options for discovering Git repositories outside the workspace #169256
Labels
feature-request
Request for new features or functionality
git
GIT issues
on-release-notes
Issue/pull request mentioned in release notes
on-testplan
Milestone
The default value of the
git.autoRepositoryDetection
setting istrue
so Git repositories are discovered based on the workspace folders, and parent folders of the opened files. There are scenarios in which the Git repository root is outside the workspace folder. This is a valuable feature as it allows users to open a subfolder of a Git repository yet have the ability to perform source control operations.Unfortunately this behaviour also has some negative side-effects. The most extreme scenario is when one opens a loose file from the home folder, and there is a Git repository in the home directory. This can cause confusion as there are lots of changes in the "Source Control" view and discarding those changes results in data loss.
//cc @digitarald
The text was updated successfully, but these errors were encountered: