# git_graph: Allow having multiple git graphs open for different repositories \(\#50401\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7455021afcd8462d2441339d667682136ffe2c5f

Requested commit: 7455021afcd8462d2441339d667682136ffe2c5f

Commit: 7455021afcd8462d2441339d667682136ffe2c5f

Tree: e420442361c791aa90009eac5a13fe6f97035c39

Author: Remco Smits

Committer: GitHub

## Message

```
git_graph: Allow having multiple git graphs open for different repositories (#50401)

Before this PR you could only have the git graph open for the active
repository, this PR changes that.
So you can have 1 git graph open per repository, allowing you to open
multiple different graph at the same time.

**Example**:


https://github.com/user-attachments/assets/9775108f-826a-476f-95de-46abcc1777a6

**Example Persistence**


https://github.com/user-attachments/assets/dbcf6692-7a67-46d9-a7ae-43a7c9a35818

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

cc @Anthony-Eid I removed the switch repo test since it's no longer a
thing.

Release Notes:

- N/A

---------

Co-authored-by: Anthony Eid <hello@anthonyeid.me>
```

## Parents

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

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