Skip to content

Conversation

@cole-miller
Copy link
Member

@cole-miller cole-miller commented Mar 27, 2025

This PR completes the process of moving git repository state storage and scanning logic from the worktree crate to project::git_store.

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 27, 2025
@cole-miller cole-miller marked this pull request as ready for review March 27, 2025 18:53
@cole-miller cole-miller changed the title WIP: Introduce IDs and snapshots for git repositories Introduce IDs and snapshots for git repositories Mar 27, 2025
@cole-miller cole-miller merged commit e7290df into main Apr 1, 2025
15 checks passed
@cole-miller cole-miller deleted the repository-snapshot branch April 1, 2025 21:41
cole-miller added a commit that referenced this pull request Apr 2, 2025
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
cole-miller added a commit that referenced this pull request Apr 10, 2025
This regressed in #27568, oops.

Release Notes:

- Fixed a bug causing conflicted files in the git panel to jump to the
"Tracked" section as soon as they were staged.
gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Apr 10, 2025
This regressed in #27568, oops.

Release Notes:

- Fixed a bug causing conflicted files in the git panel to jump to the
"Tracked" section as soon as they were staged.
gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Apr 10, 2025
This regressed in #27568, oops.

Release Notes:

- Fixed a bug causing conflicted files in the git panel to jump to the
"Tracked" section as soon as they were staged.
cole-miller added a commit that referenced this pull request Apr 10, 2025
Cherry-picked Fix merge conflicts jumping (#28508)

This regressed in #27568, oops.

Release Notes:

- Fixed a bug causing conflicted files in the git panel to jump to the
"Tracked" section as soon as they were staged.

Co-authored-by: Cole Miller <cole@zed.dev>
cole-miller added a commit that referenced this pull request Apr 10, 2025
Cherry-picked Fix merge conflicts jumping (#28508)

This regressed in #27568, oops.

Release Notes:

- Fixed a bug causing conflicted files in the git panel to jump to the
"Tracked" section as soon as they were staged.

Co-authored-by: Cole Miller <cole@zed.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants