summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2023-07-08 12:27:33 +0200
committerQuentin Carbonneaux2023-07-08 12:27:33 +0200
commit30417d48e05141a4d352aa7c04f451c3e87f1fa7 (patch)
treee70f761eef39ce6a844446ad0b51b5f4f1f25c39
parent8c19b69d93c99e27f6a0ebe34d531831bb164589 (diff)
[mx] handle dir changes in log commandHEADmaster
-rw-r--r--memex/main.go8
1 files 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 {