ZIm/crates/worktree/src
Cole Miller dc3158c8ce
git: Don't consider $HOME as containing git repository unless it's opened directly (#25948)
When a worktree is created, we walk up the ancestors of the root path
trying to find a git repository. In particular, if your `$HOME` is a git
repository and you open some subdirectory of `$HOME` that's *not* a git
repository, we end up scanning `$HOME` and everything under it looking
for changed and untracked files, which is often pretty slow. Consistency
here is not very useful and leads to a bad experience.

This PR adds a special case to not consider `$HOME` as a containing git
repository, unless you ask for it by doing the equivalent of `zed ~`.

Release Notes:

- Changed the behavior of git features to not treat `$HOME` as a git
repository unless opened directly
2025-03-03 20:33:02 +00:00
..
ignore.rs Fix Linux search issues (#13479) 2024-06-24 13:46:21 -07:00
worktree.rs git: Don't consider $HOME as containing git repository unless it's opened directly (#25948) 2025-03-03 20:33:02 +00:00
worktree_settings.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
worktree_tests.rs git: Don't consider $HOME as containing git repository unless it's opened directly (#25948) 2025-03-03 20:33:02 +00:00