add note
authorJoey Hess <joeyh@joeyh.name>
Thu, 29 Jul 2021 17:14:03 +0000 (13:14 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 29 Jul 2021 17:14:03 +0000 (13:14 -0400)
Annex/Content/Presence.hs

index 15110213b1831bfd15347b56571561e9620bb1b1..07f77ec59d946ee85ca67b00ccc0a7258636bdbd 100644 (file)
@@ -148,6 +148,9 @@ isUnmodified' = isUnmodifiedLowLevel Database.Keys.addInodeCaches
 {- Cheap check if a file contains the unmodified content of the key,
  - only checking the InodeCache of the key.
  -
+ - When the InodeCache is stale, this may incorrectly report that a file is
+ - modified.
+ -
  - Note that, on systems not supporting high-resolution mtimes,
  - this may report a false positive when repeated edits are made to a file
  - within a small time window (eg 1 second).