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
GitStatusMonitor increase minimum time between updates #8886
GitStatusMonitor increase minimum time between updates #8886
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8886 +/- ##
=======================================
Coverage 56.03% 56.03%
=======================================
Files 922 922
Lines 65944 65944
Branches 12070 12070
=======================================
Hits 36951 36951
+ Misses 25985 25984 -1
- Partials 3008 3009 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
@gitextensions/git-extensions-source Any objections to this change and to include it in 3.5? For 3.5 we could maybe just decrease the periodicity, set it to maybe 15 s instead if 30 s seem too much. |
Once merged I'll cherry pick this into 3.5
|
I am afraid, 30 s could be too long. I guess I must run it for about a week.
Yes, wasn't there a suggestion for doubling the delay up to a limit? But perhaps it is not necessary. Testing with fixed 30s... |
It got too complex for a quick solution, there are already some delays to wait a little time after exlplicit refreshes and file changes so that is maybe for later. I choose 30s as that was matching a few scenarios with changing one file, realize that I needed to change another, do the change and check status. It is kind of the longest time I can wait staring at the screen. |
Finally, I have understood why it takes so long until the |
It could take five minutes before if the change was done worktree<->index. And I propose the delay time is set to 15 s in 3.5. |
It worked well for me with #8894. |
Fixes #8871
Proposed changes
Increase the time between git-status runs from 5s to 30s
So for instance when building, git-status runs every 30s
If there has been no changes and git-status has not run in 30s,
git-status will run in about one second as now
This affects:
The use case with most impact as I see it is if you save one file in the editor (git-status is triggered quickly), then you select another file in the editor already edited and save that, then the status will be updated in about 30s instead of about 5s.
Test methodology
manual
✒️ I contribute this code under The Developer Certificate of Origin.