git annex sync --content to exports

Assistant still todo.

This commit was sponsored by Boyd Stephen Smith Jr. on Patreon
This commit is contained in:
Joey Hess 2017-09-19 14:20:47 -04:00
parent 527f734492
commit 2e69efea8d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 90 additions and 38 deletions

View file

@ -10,8 +10,11 @@ module Annex.Export where
import Annex
import Annex.CatFile
import Types.Key
import Types.Remote
import qualified Git
import qualified Data.Map as M
-- An export includes both annexed files and files stored in git.
-- For the latter, a SHA1 key is synthesized.
data ExportKey = AnnexKey Key | GitKey Key
@ -33,3 +36,8 @@ exportKey sha = mk <$> catKey sha
, keyChunkSize = Nothing
, keyChunkNum = Nothing
}
exportTree :: RemoteConfig -> Bool
exportTree c = case M.lookup "exporttree" c of
Just "yes" -> True
_ -> False