zed/crates/git/src
Jakub Konka 00eafe63d9
git: Make long-running git staging snappy in git panel (#42149)
Previously, staging a large file in the git panel would block the UI
items until that operation finished. This is due to the fact that
staging is a git op that is locked globally by git (per repo) meaning
only one op that is modifying the git index can run at any one time. In
order to make the UI snappy while letting any pending git staging jobs
to finish in the background, we track their progress via `PendingOps`
indexed by git entry path. We have already had a concept of pending
operations however they existed at the UI layer in the `GitPanel`
abstraction. This PR moves and augments `PendingOps` into the model
`Repository` in `git_store` which seems like a more natural place for
tracking running git jobs/operations. Thanks to this, pending ops are
now stored in a `SumTree` indexed by git entry path part of the
`Repository` snapshot, which makes for efficient access from the UI.

Release Notes:

- Improved UI responsiveness when staging/unstaging large files in the
git panel
2025-11-07 07:34:06 +01:00
..
blame.rs Clean up RelPath API (#38912) 2025-09-25 14:42:32 -07:00
checkpoint.gitignore agent: Don't track large and common binary files (#31352) 2025-05-26 11:31:25 +00:00
commit.rs git: Work around windows command length limit message fetching (#39115) 2025-09-29 15:29:42 +00:00
git.rs git: Add support for git pull with rebase (#41117) 2025-11-04 16:41:06 +00:00
hosting_provider.rs Fix Git permalinks not being URL-escaped (#39895) 2025-10-09 18:33:05 +00:00
remote.rs Detect wider variety of usernames for SSH-based remotes (#21508) 2024-12-05 15:23:37 -08:00
repository.rs git: Fix pull failing when tracking remote with different branch name (#41768) 2025-11-06 05:18:08 +00:00
stash.rs git: Add git stash picker (#35927) 2025-09-12 14:45:38 -04:00
status.rs git: Make long-running git staging snappy in git panel (#42149) 2025-11-07 07:34:06 +01:00