# git: Split up compute snapshot to improve repository responsiveness \(\#51882\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f9f192045264af4cb9d953fde7b43b8e81e52dae

Requested commit: f9f192045264af4cb9d953fde7b43b8e81e52dae

Commit: f9f192045264af4cb9d953fde7b43b8e81e52dae

Tree: 312801d39a38df7148b05ab7db44cc9e646b9b81

Author: Anthony Eid

Committer: GitHub

## Message

```
git: Split up compute snapshot to improve repository responsiveness (#51882)

## Context

This should allow the UI to update faster with stateful git operations
like branch changes, commits, etc. This will also allow Zed to
recognized when a new project belongs to a branch sooner than before.


## Self-Review Checklist

<!-- Check before requesting review: -->
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- git: Speed up UI responsiveness to branch/worktree changes
```

## Parents

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

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