zed/crates/git_graph
Anthony Eid 7748047051
git_graph: Refresh UI when stash/branch list has changed (#53094)
### Summary 

This PR fixes an issue where the git graph wouldn't refresh its state
correctly unless HEAD changed. Now repository emits events when the
branch list has changed, and invalidates the graph data cache when the
stash or branch list has changed.

I also renamed the event `Repository::BranchedChanged` to
`Repository::HeadChanged` as well.

Self-Review Checklist:

- [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

Closes #53080

Release Notes:

- N/A or Added/Fixed/Improved ...
2026-04-06 14:30:52 -04:00
..
src git_graph: Refresh UI when stash/branch list has changed (#53094) 2026-04-06 14:30:52 -04:00
Cargo.toml git_graph: Remove feature flag (#52972) 2026-04-02 15:26:37 +00:00
LICENSE-GPL git: Add graph support (#44434) 2026-01-22 20:53:23 -05:00