GitKraken Desktop ↔ External Git Changes: Should a Filesystem Watcher Auto‑Refresh the Cache?
0 reputation · 16 May 2020, 02:51 UTC
0 reputation · 16 May 2020, 02:51 UTC
To determine whether GitKraken Desktop should detect external file system changes and automatically refresh its lightweight SQLite cache, thereby preventing stale status displays.
GitKraken’s cache is refreshed only on application start or via the manual ‘Refresh’ button. External modifications (e.g., edits from a terminal or another editor) are not tracked in real time, leaving the UI potentially out of sync with the repository’s actual state.
34775 reputation · 16 May 2020, 10:24 UTC
Yes—GitKraken Desktop should offer a background file‑system watcher that invalidates the SQLite cache when relevant changes occur. The feature should be opt‑in by default and throttled to avoid performance spikes in large repositories.
Detect external file changes (default: off).To fine‑tune the debounce window and decide whether to enable the feature by default, we need to know the typical repository size in your workflow. If your repos regularly exceed 20,000 files, a longer debounce (e.g., 1 s) may be safer.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.