Fix git stage race condition with delayed fs events (#27036)
This PR adds a failing test `test_staging_hunks_with_delayed_fs_event` and makes it pass Also skips a queued read for git diff states if another read was requested (less work) This still doesn't catch all race conditions, but the PR is getting long so I'll yield this and start another branch Release Notes: - N/A
This commit is contained in:
parent
68a572873b
commit
7f2e3fb5bd
10 changed files with 476 additions and 245 deletions
|
@ -159,7 +159,7 @@ struct EntryDetails {
|
|||
git_status: GitSummary,
|
||||
is_private: bool,
|
||||
worktree_id: WorktreeId,
|
||||
canonical_path: Option<Box<Path>>,
|
||||
canonical_path: Option<Arc<Path>>,
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue