allow matching on files whose content is not present
authorJoey Hess <joeyh@joeyh.name>
Mon, 28 Sep 2020 15:08:30 +0000 (11:08 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 28 Sep 2020 15:17:46 +0000 (11:17 -0400)
commit00dbe35fbc7261767551ba35193b3af20a6c9c1d
treed66580af5f7f89931e73920e33816ae0815eac84
parent9e676f062f7b89ee1663f4edcba9b3268df5dfac
allow matching on files whose content is not present

Anything that needs to examine the file content will fail to match,
or fall back to other available information. But the intent is that the
matcher be checked for matchNeedsFileContent and only be used if it does
not, so the exact behavior doesn't much matter as it should never
happen.

The real point of this is to not need to provide a dummy content file
when matching.

This commit was sponsored by Martin D on Patreon.
Annex/FileMatcher.hs
Annex/Import.hs
Annex/Ingest.hs
CmdLine/Batch.hs
CmdLine/Seek.hs
Command/Add.hs
Command/Import.hs
Command/Info.hs
Command/Multicast.hs
Limit.hs
Types/FileMatcher.hs