summaryrefslogtreecommitdiff
path: root/Annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-12-29 13:37:11 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-12-29 13:37:11 -0400
commit1b007068ca4936306889b8b3af2bf224746a2318 (patch)
tree1a6a2052aa3900c8d8f0d579b407349b57cd9015 /Annex.hs
parent4d51b93a05dd6482a9ba364e23faa354f2d20997 (diff)
memoize parsing of annex.direct config setting
It occurs to me that all config settings should be parsed once at startup, into a proper ADT, rather than all this ad-hoc parsing and memoization. One day..
Diffstat (limited to 'Annex.hs')
-rw-r--r--Annex.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Annex.hs b/Annex.hs
index 7fb8afd5c..d314d3ec7 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -104,6 +104,7 @@ data AnnexState = AnnexState
, uuidmap :: Maybe UUIDMap
, preferredcontentmap :: Maybe PreferredContentMap
, shared :: Maybe SharedRepository
+ , direct :: Maybe Bool
, forcetrust :: TrustMap
, trustmap :: Maybe TrustMap
, groupmap :: Maybe GroupMap
@@ -133,6 +134,7 @@ newState gitrepo = AnnexState
, uuidmap = Nothing
, preferredcontentmap = Nothing
, shared = Nothing
+ , direct = Nothing
, forcetrust = M.empty
, trustmap = Nothing
, groupmap = Nothing