Skip to content

Fix git panel not updating after commit#47222

Merged
cole-miller merged 1 commit intozed-industries:mainfrom
feeiyu:fix_git_worktree
Jan 31, 2026
Merged

Fix git panel not updating after commit#47222
cole-miller merged 1 commit intozed-industries:mainfrom
feeiyu:fix_git_worktree

Conversation

@feeiyu
Copy link
Contributor

@feeiyu feeiyu commented Jan 20, 2026

Fixed git panel not update after commit or switch branch on Linux.

On macOS and Windows, the watcher implementation recursively watches subdirectories.
On Linux, the watcher is non-recursive.

In Git worktree scenarios, only <project>/.git is watched, but the actual worktree Git directory
<project>/.git/worktrees/<worktree> is not.
Therefore, Git operations such as commits or branch switches inside a worktree do not emit watcher events on Linux, causing the Git panel to stay out of sync.

Release Notes:

  • Fixed git panel not update after commit or switch branch on Linux with git worktrees.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 20, 2026
@maxdeviant maxdeviant changed the title fix git panel not update after commit Fix git panel not updating after commit Jan 20, 2026
@zed-industries-bot
Copy link
Contributor

zed-industries-bot commented Jan 20, 2026

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against efef9e1

@thomasfermi
Copy link

I have the problems you described on Linux. Thanks for your PR, I hope this gets to users soon!

@cole-miller
Copy link
Member

Thanks!

@cole-miller cole-miller enabled auto-merge (squash) January 31, 2026 18:49
@cole-miller cole-miller merged commit 48f712b into zed-industries:main Jan 31, 2026
30 checks passed
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.

4 participants