Git: tracked files inconsistency
Summary
When opening Zed from within an inner directory (e.g., 'backend'), the Git 'Tracked' view shows changes from the outer directory in a list view, but these changes do not appear in the 'Uncommitted Changes' view.
Description
Steps to trigger the problem:
-
initialize git repository in empty folder:
git init -
setup the repository like this:
touch file.txt && mkdir backend && touch backend/file.txt. ├── backend │ └── file.txt ├── file.txt └── .git -
open zen within backend directory:
zed backend/
Actual Behavior:
When you click on the Git view, tracked files from both the root and inner directories are shown in the list view, but these files are missing in the "Uncommitted Changes" view.
Expected Behavior: The files visible in the "Uncommitted Changes" view should be the same as those in the list view.
Zed Version and System Specs
Zed: v0.183.13 (Zed) OS: Linux Wayland fedora 42 Memory: 30.7 GiB Architecture: x86_64 GPU: AMD Radeon Graphics (RADV RENOIR) || radv || Mesa 25.0.4