performance fix
It was checking if it needed to merge on every branch access, fix it to only check once.
This commit is contained in:
parent
44fc358885
commit
82e655efd0
1 changed files with 1 additions and 1 deletions
|
@ -153,8 +153,8 @@ update = do
|
|||
-}
|
||||
liftIO $ Git.UnionMerge.merge_index g branches
|
||||
liftIO $ Git.commit g "update" fullname (nub $ fullname:refs)
|
||||
Annex.changeState $ \s -> s { Annex.branchstate = state { branchUpdated = True } }
|
||||
invalidateCache
|
||||
Annex.changeState $ \s -> s { Annex.branchstate = state { branchUpdated = True } }
|
||||
where
|
||||
changedbranch (_, branch) = do
|
||||
g <- gitRepo
|
||||
|
|
Loading…
Reference in a new issue