better memoize core.sharedrepository handling
It was memoized, but that was not used consistently. Move it to Types.GitConfig so it will auto-memoize.
This commit is contained in:
parent
b47c9fd587
commit
167539a354
4 changed files with 21 additions and 25 deletions
3
Annex.hs
3
Annex.hs
|
@ -42,7 +42,6 @@ import Annex.Fixup
|
|||
import Git.CatFile
|
||||
import Git.CheckAttr
|
||||
import Git.CheckIgnore
|
||||
import Git.SharedRepository
|
||||
import qualified Git.Hook
|
||||
import qualified Git.Queue
|
||||
import Types.Key
|
||||
|
@ -115,7 +114,6 @@ data AnnexState = AnnexState
|
|||
, uuidmap :: Maybe UUIDMap
|
||||
, preferredcontentmap :: Maybe (FileMatcherMap Annex)
|
||||
, requiredcontentmap :: Maybe (FileMatcherMap Annex)
|
||||
, shared :: Maybe SharedRepository
|
||||
, forcetrust :: TrustMap
|
||||
, trustmap :: Maybe TrustMap
|
||||
, groupmap :: Maybe GroupMap
|
||||
|
@ -161,7 +159,6 @@ newState c r = AnnexState
|
|||
, uuidmap = Nothing
|
||||
, preferredcontentmap = Nothing
|
||||
, requiredcontentmap = Nothing
|
||||
, shared = Nothing
|
||||
, forcetrust = M.empty
|
||||
, trustmap = Nothing
|
||||
, groupmap = Nothing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue