--explain for preferred/required content matching
And annex.largefiles and annex.addunlocked. Also git-annex matchexpression --explain explains why its input expression matches or fails to match. When there is no limit, avoid explaining why the lack of limit matches. This is also done when no preferred content expression is set, although in a few cases it defaults to a non-empty matcher, which will be explained. Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
parent
ba1c222912
commit
518a51a8a0
12 changed files with 89 additions and 60 deletions
|
@ -15,6 +15,7 @@ module Types.ActionItem (
|
|||
import Key
|
||||
import Types.Transfer
|
||||
import Types.UUID
|
||||
import Types.FileMatcher
|
||||
import Git.FilePath
|
||||
import Git.Quote (StringContainingQuotedPath(..))
|
||||
import Utility.FileSystemEncoding
|
||||
|
@ -60,6 +61,15 @@ instance MkActionItem (BranchFilePath, Key) where
|
|||
instance MkActionItem (Transfer, TransferInfo) where
|
||||
mkActionItem = uncurry ActionItemFailedTransfer
|
||||
|
||||
instance MkActionItem MatchInfo where
|
||||
mkActionItem (MatchingFile i) = ActionItemTreeFile (matchFile i)
|
||||
mkActionItem (MatchingInfo i) = case providedFilePath i of
|
||||
Just f -> ActionItemTreeFile f
|
||||
Nothing -> case providedKey i of
|
||||
Just k -> ActionItemKey k
|
||||
Nothing -> ActionItemOther Nothing
|
||||
mkActionItem (MatchingUserInfo _) = ActionItemOther Nothing
|
||||
|
||||
actionItemDesc :: ActionItem -> StringContainingQuotedPath
|
||||
actionItemDesc (ActionItemAssociatedFile (AssociatedFile (Just f)) _) =
|
||||
QuotedPath f
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue