You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the latest OMZsh update, it appears there is a lag when switching branches (video attached for example).
Previous Versions: A repo or directory would be loaded on the correct branch "right away" (apologies for lack of technical terminology). No flickering/switching present.
New/current Version: A repo or directory is loaded on an incorrect branch, and flashes/switches to the expected branch after loading the directory. In the attached video, notice the se-commerce and sportsengine directories will briefly flash the previously loaded branch.
Steps to reproduce
Load two repos within the same directory
Ensure RepoA has branchA checked-out, and RepoB has branchB checked-out (repo names and branches are at testers discretion)
Within terminal/CLI, navigate back-and-forth between RepoA and RepoB
Expected behavior
A repo or directory is loaded on the expected branch "right away" (without any delay or flickering between branches).
Hi! That's expected with the new async way of getting git information. As you may feel, it's way faster to enter the directories, and you don't need to wait for git information to be ready.
It'd be straightforward to add an option that erases the information when changing directory and only prints it when it's ready. But the flickering will still be there (no temporary "wrong" information).
If you just want to have the same experience as before, you can disable git async, but you'll feel that changing directory is way slower.
Hi @carlosala! Disabling git async fixed my problem; I appreciate the quick response!
For what it's worth: on my machine and network (M2 Max w/64gb RAM) I don't notice any drops in performance with the feature enabled or disabled. I think I'll keep the feature disabled for the foreseeable future.
Describe the bug
With the latest OMZsh update, it appears there is a lag when switching branches (video attached for example).
Previous Versions: A repo or directory would be loaded on the correct branch "right away" (apologies for lack of technical terminology). No flickering/switching present.
New/current Version: A repo or directory is loaded on an incorrect branch, and flashes/switches to the expected branch after loading the directory. In the attached video, notice the
se-commerce
andsportsengine
directories will briefly flash the previously loaded branch.Steps to reproduce
branchA
checked-out, and RepoB hasbranchB
checked-out (repo names and branches are at testers discretion)Expected behavior
A repo or directory is loaded on the expected branch "right away" (without any delay or flickering between branches).
Screenshots and recordings
Screen.Recording.2024-04-23.at.9.48.20.AM.mov
OS / Linux distribution
MacOS Sonoma 14.4
Zsh version
5.9
Oh My Zsh version
master (5d2d35c)
Terminal emulator
Terminal.app
If using WSL on Windows, which version of WSL
None
Additional context
sportsengine
is a monorepo andse-commerce
is a repo/project within the larger monorepo.The text was updated successfully, but these errors were encountered: