use hash-object --batch

Handle was plumbed through, but not used.
This commit is contained in:
Joey Hess 2016-03-14 16:12:55 -04:00
parent 88a4a6f396
commit 00d9da3534
Failed to extract signature

View file

@ -564,7 +564,7 @@ performTransitionsLocked jl ts neednewlocalbranch transitionedrefs = do
-- transitions on it.
return ()
ChangeFile content' -> do
sha <- inRepo $ hashObject BlobObject content'
sha <- liftIO $ hashBlob hasher content'
Annex.Queue.addUpdateIndex $ Git.UpdateIndex.pureStreamer $
Git.UpdateIndex.updateIndexLine sha FileBlob (asTopFilePath file)
apply rest hasher file content' trustmap