lib: Do not set ModifiedBy on meta only changes (#7345)

This commit is contained in:
Simon Frei
2021-02-08 15:30:39 +01:00
committed by GitHub
parent e95d005c21
commit c0f353c0e8
8 changed files with 21 additions and 22 deletions
+3 -3
View File
@@ -635,17 +635,17 @@ func TestLocalFlagBits(t *testing.T) {
t.Error("file should have no weird bits set by default")
}
f.SetIgnored(42)
f.SetIgnored()
if !f.IsIgnored() || f.MustRescan() || !f.IsInvalid() {
t.Error("file should be ignored and invalid")
}
f.SetMustRescan(42)
f.SetMustRescan()
if f.IsIgnored() || !f.MustRescan() || !f.IsInvalid() {
t.Error("file should be must-rescan and invalid")
}
f.SetUnsupported(42)
f.SetUnsupported()
if f.IsIgnored() || f.MustRescan() || !f.IsInvalid() {
t.Error("file should be invalid")
}