zed icon indicating copy to clipboard operation
zed copied to clipboard

Zed does not show git status and git diff when launched from a subfolder

Open smitchaudhary opened this issue 10 months ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

If you launch zed from a subfolder inside a git repo, then all the git markings do not appear.

Thus, you can no longer see the git diffs or any of the other things such as what file has been modified (in the project panel), or the name of the branch (in the top bar) and so on.

These things are visible only if you launch zed from the root of the repo where .git resides basically. But I think it would make sense for this to not be the case

Environment

Zed: v0.129.1 (Zed) OS: macOS 14.3.1 Memory: 16 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

Screenshot 2024-04-04 at 10 39 01 AM Screenshot 2024-04-04 at 10 39 18 AM

The same file, if I launch from the root of the repo, it works.

Screenshot 2024-04-04 at 10 40 37 AM

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

smitchaudhary avatar Apr 04 '24 08:04 smitchaudhary

@JosephTLyons I'm trying to pick this as my first contribution. Can someone point me where to look at. I can basically see that the path is not considered if there isn't a .git file in the opened folder root.

manosriram avatar Apr 06 '24 08:04 manosriram

Addressed by #11550

smitchaudhary avatar May 14 '24 08:05 smitchaudhary