This is actually matching worktree files, and now that a Key can be
provided along with the file when doing that, using MatchingFile
reflects that.
maybe noop (Annex.BranchState.setCache logf) logcontent
checkMatcherWhen mi
(matcherNeedsLocationLog mi && not (matcherNeedsFileName mi))
- (MatchingKey k (AssociatedFile (Just f)))
+ (MatchingFile $ FileInfo (Just f) f (Just k))
(commandAction $ startAction seeker si f k)
precachefinisher mi lreader
Nothing -> return ()
case parseLinkTargetOrPointerLazy =<< content of
Just k -> checkMatcherWhen mi
(matcherNeedsKey mi && not (matcherNeedsFileName mi || matcherNeedsLocationLog mi))
- (MatchingKey k (AssociatedFile (Just f)))
+ (MatchingFile $ FileInfo (Just f) f (Just k))
(checkpresence k (a k))
Nothing -> noop
data MatchInfo
= MatchingFile FileInfo
| MatchingKey Key AssociatedFile
- -- ^ This is used when operating on a file that may be in another
+ -- ^ This is used when matching a file that may be in another
-- branch. The AssociatedFile is the filename, but it should not be
-- accessed from disk when matching.
| MatchingInfo ProvidedInfo