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
|
||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -11,6 +11,8 @@ git-annex (0.03) UNRELEASED; urgency=low
|
|||
* Added remote.annex-scp-options and remote.annex-ssh-options.
|
||||
* The backends to use when adding different sets of files can be configured
|
||||
via gitattributes.
|
||||
* In .gitattributes, the git-annex-backend attribute can be set to the
|
||||
names of backends to use when adding different types of files.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Thu, 28 Oct 2010 13:46:59 -0400
|
||||
|
||||
|
|
Loading…
Reference in a new issue