diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-30 23:58:15 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-30 23:58:34 +0300 |
| commit | fc4e1bbf6b0fa2ec37445a5b72356514c7c6be6a (patch) | |
| tree | 93af04af44a4dcc062a7886c51d70641c1903144 /src/events.rs | |
| parent | d477341e6af816ff4396042b084a0378ef437b4a (diff) | |
perf: reduce sidebar git polling overhead
refs #353
Diffstat (limited to 'src/events.rs')
| -rw-r--r-- | src/events.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/events.rs b/src/events.rs index 4bbfb219..84378b65 100644 --- a/src/events.rs +++ b/src/events.rs @@ -7,7 +7,7 @@ use std::time::Instant; use crate::detect::{Agent, AgentState}; use crate::layout::PaneId; -use crate::workspace::WorkspaceGitStatus; +use crate::workspace::{GitStatusCacheEntry, WorkspaceGitStatus}; #[derive(Debug)] pub struct WorktreeAddResult { @@ -89,7 +89,10 @@ pub enum AppEvent { /// re-emits it through herdr's own clipboard writer. ClipboardWrite { content: Vec<u8> }, /// Background git status refresh completed for workspaces. - GitStatusRefreshed { results: Vec<WorkspaceGitStatus> }, + GitStatusRefreshed { + results: Vec<WorkspaceGitStatus>, + cache_updates: Vec<(std::path::PathBuf, GitStatusCacheEntry)>, + }, /// Background `git worktree add` completed. WorktreeAddFinished(WorktreeAddResult), /// Background `git worktree remove` completed. |
