diff options
author | Joey Hess <joey@kitenet.net> | 2011-06-23 21:25:39 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-06-23 21:25:39 -0400 |
commit | 69d3c1cec9f6be1dba1ffb391bf69464c52f5936 (patch) | |
tree | 25409afd87286b599c65bd61e403a597413a86b0 /Annex.hs | |
parent | a61154baf5e205af74766f44fe99cbbd63411f57 (diff) |
cache the trustmap
Doubles the speed of fsck, and speeds up drop as well.
Diffstat (limited to 'Annex.hs')
-rw-r--r-- | Annex.hs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 } |