summaryrefslogtreecommitdiff
path: root/Types.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-10-11 00:19:38 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-10-11 00:19:38 -0400
commit2bd3eea0318fe52452fa7077fe94ae3f224ae9c5 (patch)
tree8597b882848fba48ac67d1ca84361e0dc5c3b516 /Types.hs
parentc5d7ca0a5a2c6837d394e23d1a18a1005ee6f1b6 (diff)
add git config lookups for annex.name, annex.backends, etc
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs11
1 files changed, 8 insertions, 3 deletions
diff --git a/Types.hs b/Types.hs
index 6e3727e25..5c5a428d5 100644
--- a/Types.hs
+++ b/Types.hs
@@ -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]
}