New migrate subcommand can be used to switch files to using a different backend, safely and with no duplication of content.
This commit is contained in:
parent
32b0e10390
commit
a78b0555e1
8 changed files with 112 additions and 17 deletions
|
@ -117,6 +117,12 @@ withAttrFilesInGit attr a params = do
|
|||
files' <- filterFiles files
|
||||
pairs <- liftIO $ Git.checkAttr repo attr files'
|
||||
return $ map a pairs
|
||||
withBackendFilesInGit :: CommandSeekBackendFiles
|
||||
withBackendFilesInGit a params = do
|
||||
repo <- Annex.gitRepo
|
||||
files <- liftIO $ Git.inRepo repo params
|
||||
files' <- filterFiles files
|
||||
backendPairs a files'
|
||||
withFilesMissing :: CommandSeekStrings
|
||||
withFilesMissing a params = do
|
||||
files <- liftIO $ filterM missing params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue