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:
parent
527f734492
commit
2e69efea8d
6 changed files with 90 additions and 38 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue