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 :: [FilePath] -> Annex [(FilePath, Maybe Backend)]
|
||||||
chooseBackends fs = do
|
chooseBackends fs = do
|
||||||
-- TODO
|
g <- Annex.gitRepo
|
||||||
return $ map (\f -> (f, Nothing)) fs
|
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.
|
* Added remote.annex-scp-options and remote.annex-ssh-options.
|
||||||
* The backends to use when adding different sets of files can be configured
|
* The backends to use when adding different sets of files can be configured
|
||||||
via gitattributes.
|
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
|
-- Joey Hess <joeyh@debian.org> Thu, 28 Oct 2010 13:46:59 -0400
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue