This commit is contained in:
Joey Hess 2010-10-12 15:52:18 -04:00
parent d257bad93c
commit 759f146d0f
2 changed files with 15 additions and 6 deletions

View file

@ -22,12 +22,7 @@ import Backend
import BackendList import BackendList
import UUID import UUID
import LocationLog import LocationLog
import Types
-- git-annex's runtime state
data State = State {
repo :: GitRepo,
backends :: [Backend]
}
{- An annexed file's content is stored somewhere under .git/annex/ -} {- An annexed file's content is stored somewhere under .git/annex/ -}
annexDir :: GitRepo -> Key -> FilePath annexDir :: GitRepo -> Key -> FilePath

14
Types.hs Normal file
View file

@ -0,0 +1,14 @@
{- git-annex core data types -}
module Types (
State(..)
) where
import BackendType
import GitRepo
-- git-annex's runtime state
data State = State {
repo :: GitRepo,
backends :: [Backend]
}