- Notifications
You must be signed in to change notification settings - Fork 289
Fix: Enhance support of worktree repository #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
commit 27fd582 will not be merged because it will introduce some issues:
|
According to the code in if (_updateBranch > 0 && now > _updateBranch) { _updateBranch = 0; _updateWC = 0; if (_updateTags > 0) { _updateTags = 0; Task.Run(() => { _repo.RefreshTags(); _repo.RefreshBranches(); _repo.RefreshCommits(); }); } else { Task.Run(() => { _repo.RefreshBranches(); _repo.RefreshCommits(); }); } Task.Run(_repo.RefreshWorkingCopyChanges); }
- CallUIThread(() => _repo.SetWatcherEnabled(true)); - if (!CheckoutAfterCreated) - { - _repo.RefreshBranches(); - _repo.RefreshCommits(); - } + CallUIThread(() => { + repo.SetWatcherEnabled(true); + repo.MarkBranchesDirtyManually(); + }); return true; |
By the way, would adding a toolbar button to refresh the entire repository (shortcut F5) help with these and other similar issue? |
I'll continue to work on this after April 30th. |
758e0fb
to 9a68418
Compare There are already three ways to close tabs.
I really do NOT want to introduce a nother way that using the mouse middle button…… |
Using the middle button to close a tab is a very common design in other multi-tab applications, such as Chrome, Jetbrains IDE, Visual Studio Code, GitKraken, etc. I will still revert the submit about closing the tab because it has nothing to do with this PR, and I may not be able to solve the aforementioned error performance |
… using the middle mouse button" This reverts commit 27fd582.
Fixed these issues |
e3b9318
to 1627f88
Compare Commit a63a0d1 force refreshing branches, working copy changes and commit after current active page changed. It's not recommanded. I've add a hotkey 'F5' to manually refresh the whole repository if it is needed. |
Why is it not recommended to refresh branches, commits, and workspaces after switching repositories? According to my observation, GitKraken takes this approach. |
I've pushed a commit 1fe050e to fix issue #86. Because we use filesystem watcher to determine how to refresh the information of repository, it's not necessary to refresh the repository each time we switch between tabs. And since |
Partial repair #86
Known Issues:
FETCH
button won't fix above question.