In .gitattributes, the git-annex-backend attribute can be set to the names of backends to use when adding different types of files.
This commit is contained in:
parent
ab3294f1dd
commit
2926cc64fb
2 changed files with 6 additions and 2 deletions
|
@ -146,5 +146,7 @@ lookupFile file = do
|
|||
-}
|
||||
chooseBackends :: [FilePath] -> Annex [(FilePath, Maybe Backend)]
|
||||
chooseBackends fs = do
|
||||
-- TODO
|
||||
return $ map (\f -> (f, Nothing)) fs
|
||||
g <- Annex.gitRepo
|
||||
bs <- Annex.supportedBackends
|
||||
pairs <- liftIO $ Git.checkAttr g "git-annex-backend" fs
|
||||
return $ map (\(f,b) -> (f, maybeLookupBackendName bs b)) pairs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue