# Add a registry for \`GitHostingProvider\`s \(\#11470\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 88c4e0b2d8932951b3dc7db6571a9861f94aa61e

Requested commit: 88c4e0b2d8932951b3dc7db6571a9861f94aa61e

Commit: 88c4e0b2d8932951b3dc7db6571a9861f94aa61e

Tree: 74fe0b16a48e5c6442e9572f927e0c3c67ade31d

Author: Marshall Bowers

Committer: GitHub

## Message

```
Add a registry for `GitHostingProvider`s (#11470)

This PR adds a registry for `GitHostingProvider`s.

The intent here is to help decouple these provider-specific concerns
from the lower-level `git` crate.

Similar to languages, the Git hosting providers live in the new
`git_hosting_providers` crate.

This work also lays the foundation for if we wanted to allow defining a
`GitHostingProvider` from within an extension. This could be useful if
we wanted to extend the support to work with self-hosted Git providers
(like GitHub Enterprise).

I also took the opportunity to move some of the provider-specific code
out of the `util` crate, since it had leaked into there.

Release Notes:

- N/A
```

## Parents

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

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