diff options
| author | Quentin Carbonneaux | 2023-07-08 12:27:33 +0200 |
|---|---|---|
| committer | Quentin Carbonneaux | 2023-07-08 12:27:33 +0200 |
| commit | 30417d48e05141a4d352aa7c04f451c3e87f1fa7 (patch) | |
| tree | e70f761eef39ce6a844446ad0b51b5f4f1f25c39 | |
| parent | 8c19b69d93c99e27f6a0ebe34d531831bb164589 (diff) | |
| -rw-r--r-- | memex/main.go | 8 |
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 { |
