From 6886716e67a09c9d7d5945569d434e6daa75d0e8 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Fri, 29 Nov 2024 18:28:10 +0000 Subject: [PATCH] Add comment --- internal/glance/config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/glance/config.go b/internal/glance/config.go index 461fd50..f92082c 100644 --- a/internal/glance/config.go +++ b/internal/glance/config.go @@ -229,6 +229,11 @@ func configFilesWatcher( // when it gets recreated, in which case we may need to watch the directory for the // creation of that file and then re-add it to the watcher, though that's // a lot of effort for a hopefully rare edge case + + // TODO: update - try and fix this for v0.7.0 + // so, about that "rare edge case"... it's not so rare + // guess what happens when you run `git pull` and a file has changes? + // yeah, it gets removed and re-added ( : case err, isOpen := <-watcher.Errors: if !isOpen { return