diff options
author | Joey Hess <joeyh@joeyh.name> | 2018-12-09 13:38:35 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2018-12-09 13:38:35 -0400 |
commit | 029ae8d4db1cb563e6a305ae9c161f3995b57671 (patch) | |
tree | 3b6f4191183ff97796b1f085d456e630c7d17441 /Types | |
parent | 61b1f9deaf294ce4ed0e83d801d1ad3215887715 (diff) |
support findred and --branch with file matching options
* findref: Support file matching options: --include, --exclude,
--want-get, --want-drop, --largerthan, --smallerthan, --accessedwithin
* Commands supporting --branch now apply file matching options --include,
--exclude, --want-get, --want-drop to filenames from the branch.
Previously, combining --branch with those would fail to match anything.
* add, import, findref: Support --time-limit.
This commit was sponsored by Jake Vosloo on Patreon.
Diffstat (limited to 'Types')
-rw-r--r-- | Types/FileMatcher.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Types/FileMatcher.hs b/Types/FileMatcher.hs index ecf4fbbd8b..425a2e5106 100644 --- a/Types/FileMatcher.hs +++ b/Types/FileMatcher.hs @@ -8,7 +8,7 @@ module Types.FileMatcher where import Types.UUID (UUID) -import Types.Key (Key) +import Types.Key (Key, AssociatedFile) import Utility.Matcher (Matcher, Token) import Utility.FileSize @@ -18,7 +18,7 @@ import qualified Data.Set as S data MatchInfo = MatchingFile FileInfo - | MatchingKey Key + | MatchingKey Key AssociatedFile | MatchingInfo (OptInfo FilePath) (OptInfo Key) (OptInfo FileSize) (OptInfo MimeType) type MimeType = String |