ZIm/crates/git_ui/src
Cole Miller e1a8a31fa4
Fix flickering when staging and unstaging files (#27931)
This fixes a bug in #27568 that caused flickering in the git panel's
checkbox state when staging and unstaging entire files. The problem is
that that stage/unstage action first saves the target path (if it's open
as a buffer), and we do a targeted git status scan in response to that
filesystem event, which makes its way to the git panel and causes it to
clear its pending state before the actual stage or unstage has gone
through.

The fix is to not clear the panel's pending state for git repository
events that originated from a targeted scan (i.e. one that was triggered
by FS events for repo paths, as opposed to events inside `.git` which
cause all statuses to be recomputed).

Release Notes:

- N/A
2025-04-02 17:43:48 +00:00
..
askpass_modal.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
blame_ui.rs Allow viewing past commits in Zed (#27636) 2025-03-31 23:26:47 +00:00
branch_picker.rs Finish removing git repository state and scanning logic from worktrees (#27568) 2025-04-01 17:41:20 -04:00
commit_message_prompt.txt git_ui: Try to prompt the model out of including the diff output (#26281) 2025-03-07 15:05:35 +00:00
commit_modal.rs Finish removing git repository state and scanning logic from worktrees (#27568) 2025-04-01 17:41:20 -04:00
commit_tooltip.rs Allow viewing past commits in Zed (#27636) 2025-03-31 23:26:47 +00:00
commit_view.rs Use new multibuffer excerpts in find-all-references and friends (#27876) 2025-04-01 15:42:32 -06:00
git_panel.rs Fix flickering when staging and unstaging files (#27931) 2025-04-02 17:43:48 +00:00
git_panel_settings.rs Add git init button (#26522) 2025-03-12 07:25:19 +00:00
git_ui.rs Allow viewing past commits in Zed (#27636) 2025-03-31 23:26:47 +00:00
onboarding.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
picker_prompt.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
project_diff.rs Fix flickering when staging and unstaging files (#27931) 2025-04-02 17:43:48 +00:00
remote_output.rs Fix message on push (#26588) 2025-03-12 20:18:28 +00:00
repository_selector.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00