git: Support git repos with .git folder above project root
TODOs:
- [ ] Add assertions to the test to ensure that the git status is propagated
Fixes:
- https://github.com/zed-industries/zed/issues/10154
- https://github.com/zed-industries/zed/issues/8418
- https://github.com/zed-industries/zed/issues/8275
- https://github.com/zed-industries/zed/issues/7816
- https://github.com/zed-industries/zed/issues/6762
- https://github.com/zed-industries/zed/issues/4419
- https://github.com/zed-industries/zed/issues/4672
- https://github.com/zed-industries/zed/issues/5161
Release Notes:
- Added support for opening subfolders of git repositories and treating them as part of a repository (show git status in project panel, show git diff in gutter, git blame works, ...) (#4672).
Demo video:
https://github.com/zed-industries/zed/assets/1185253/afc1cdc3-372c-404e-99ea-15708589251c
Oh, yes, please! Most of my work is in subfolders of a monorepo, and I've been missing the git integrations. This will be great!
FYI, if I understand correctly, I think that this would close (or at least address) #10154, #8418, #8275, #7816, #6762, #4419, #4672, and #5161. Phew!
Thanks for that listen @claytonrcarter!
Just wanted to say thank you for this! I updated and rebuilt, and git integration is working great in my monorepo projects. Thank you! 🙏 🎉
Great to hear, @claytonrcarter! Let me know if you bump into any issues :)