From 30417d48e05141a4d352aa7c04f451c3e87f1fa7 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sat, 8 Jul 2023 12:27:33 +0200 Subject: [mx] handle dir changes in log command --- memex/main.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/memex/main.go b/memex/main.go index c62a203..849a456 100644 --- a/memex/main.go +++ b/memex/main.go @@ -455,8 +455,12 @@ func logCmd(args logArgs) { } new := w.Here() if old != nil && new != nil { - diff, _ := simpleDiff(old, new) - if diff != 0 { + diff, skip := simpleDiff(old, new) + /* if simpleDiff() says we should not + * skip the directory, it means that + * its address changed; we reflect + * that in the log */ + if diff != 0 || !skip { changed = true } } else { -- cgit v1.2.3