add git config lookups for annex.name, annex.backends, etc

This commit is contained in:
Joey Hess 2010-10-11 00:19:38 -04:00
parent c5d7ca0a5a
commit 2bd3eea031
5 changed files with 75 additions and 16 deletions

View file

@ -23,12 +23,17 @@ data Backend = Backend {
-- a git repository
data GitRepo = GitRepo {
top :: FilePath,
bare :: Bool,
remotes :: [GitRepo]
bare :: Bool
}
-- git-annex's runtime state
data State = State {
repo :: GitRepo,
backends :: [Backend]
gitconfig :: GitConfig
}
data GitConfig = GitConfig {
annex_name :: String,
annex_numcopies :: Int,
annex_backends :: [Backend]
}