summaryrefslogtreecommitdiff
path: root/Annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-06-23 21:25:39 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-06-23 21:25:39 -0400
commit69d3c1cec9f6be1dba1ffb391bf69464c52f5936 (patch)
tree25409afd87286b599c65bd61e403a597413a86b0 /Annex.hs
parenta61154baf5e205af74766f44fe99cbbd63411f57 (diff)
cache the trustmap
Doubles the speed of fsck, and speeds up drop as well.
Diffstat (limited to 'Annex.hs')
-rw-r--r--Annex.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Annex.hs b/Annex.hs
index 2bd090e90..82908881d 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -24,7 +24,7 @@ import Types.Backend
import Types.Remote
import Types.Crypto
import Types.BranchState
-import TrustLevel
+import Types.TrustLevel
import Types.UUID
-- git-annex's monad
@@ -48,6 +48,7 @@ data AnnexState = AnnexState
, fromremote :: Maybe String
, exclude :: [String]
, forcetrust :: [(UUID, TrustLevel)]
+ , trustmap :: Maybe TrustMap
, cipher :: Maybe Cipher
}
@@ -69,6 +70,7 @@ newState allbackends gitrepo = AnnexState
, fromremote = Nothing
, exclude = []
, forcetrust = []
+ , trustmap = Nothing
, cipher = Nothing
}