make MatchFiles introspectable
authorJoey Hess <joeyh@joeyh.name>
Thu, 24 Sep 2020 17:55:19 +0000 (13:55 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 24 Sep 2020 18:01:53 +0000 (14:01 -0400)
commitc1b4d76e6b9f00e470072a6db1c085608abced8c
tree3f32da65fd3dcf4dd8c33fbf922f850247b52d01
parent6d95361f353d3740cf6cc9ed47f6736c89d5e8ab
make MatchFiles introspectable

matchNeedsFileContent is not used yet, but shows how to add information
about terminals. That one would be needed for
https://git-annex.branchable.com/todo/sync_fast_import/

Note the tricky bit in Annex.FileMatcher.call where it folds over the
included matcher to propagate the information.

This commit was sponsored by Svenne Krap on Patreon.
Annex/FileMatcher.hs
Command/MatchExpression.hs
Limit.hs
Limit/Wanted.hs
Types/FileMatcher.hs
Utility/Matcher.hs
doc/todo/introspect_preferred_content_expressions.mdwn