avoid using MatchingKey where MatchingFile can be used now
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.
This commit is contained in:
parent
9de5506f19
commit
5e094d02d6
2 changed files with 3 additions and 3 deletions
|
@ -346,7 +346,7 @@ seekFilteredKeys seeker listfs = do
|
|||
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 ()
|
||||
|
@ -373,7 +373,7 @@ seekFilteredKeys seeker listfs = do
|
|||
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
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import qualified Data.Set as S
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue