# Migrate most callers of git-related worktree APIs to use the GitStore \(\#27225\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/cf7d639fbca7c26297d892cf898e3a215629663d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: cf7d639fbca7c26297d892cf898e3a215629663d

Requested commit: cf7d639fbca7c26297d892cf898e3a215629663d

Commit: cf7d639fbca7c26297d892cf898e3a215629663d

Tree: c7b6fe0bc2932eb292e76c96b99706c50ffa4e40

Author: Cole Miller

Committer: GitHub

## Message

```
Migrate most callers of git-related worktree APIs to use the GitStore (#27225)

This is a pure refactoring PR that goes through all the git-related APIs
exposed by the worktree crate and minimizes their use outside that
crate, migrating callers of those APIs to read from the GitStore
instead. This is to prepare for evacuating git repository state from
worktrees and making the GitStore the new source of truth.

Other drive-by changes:

- `project::git` is now `project::git_store`, for consistency with the
other project stores
- the project panel's test module has been split into its own file

Release Notes:

- N/A

---------

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
```

## Parents

- [9134630841f0a622a1f5c7e7354e8894cc1ae0e5](https://git.cafe/gitcafe/zed/commit/9134630841f0a622a1f5c7e7354e8894cc1ae0e5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/cf7d639fbca7c26297d892cf898e3a215629663d?format=markdown)
