summaryrefslogtreecommitdiffstats
path: root/pkg/config/editor_presets.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-07-29 17:30:40 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-07-30 18:35:36 +1000
commit91909331b54b953ae64d030942a4787794713b9e (patch)
tree4b9257cf54167d454a1dcb10cc99a544bfba7680 /pkg/config/editor_presets.go
parentf31e213edc3e15b080efc13ec86aa2b3fe74e68e (diff)
Fix flakey worktree tests
In the presentation layer, when showing branches, we'll show worktrees against branches if they're associated. But there was a race condition: if the worktree model was refreshed after the branches model, it wouldn't be used in the presentation layer when it came time to render the branches. A better solution would be to have some way of signalling that a particular context needs to be refreshed and after all the models are done being refreshed, we then refresh the contexts. This will prevent double-renders
Diffstat (limited to 'pkg/config/editor_presets.go')
0 files changed, 0 insertions, 0 deletions