zed icon indicating copy to clipboard operation
zed copied to clipboard

git: Support git repos with .git folder above project root

Open mrnugget opened this issue 1 year ago • 2 comments

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

mrnugget avatar May 08 '24 12:05 mrnugget

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!

claytonrcarter avatar May 10 '24 09:05 claytonrcarter

Thanks for that listen @claytonrcarter!

mrnugget avatar May 10 '24 11:05 mrnugget

Just wanted to say thank you for this! I updated and rebuilt, and git integration is working great in my monorepo projects. Thank you! 🙏 🎉

claytonrcarter avatar May 14 '24 17:05 claytonrcarter

Great to hear, @claytonrcarter! Let me know if you bump into any issues :)

mrnugget avatar May 15 '24 07:05 mrnugget