simplification now that all logs use Builder

This commit is contained in:
Joey Hess 2019-01-09 14:10:05 -04:00
parent 2fef43dd71
commit 232b1a08f3
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 13 additions and 7 deletions

View file

@ -34,6 +34,7 @@ import qualified Data.Set as S
import qualified Data.Map as M
import Data.Function
import Data.Char
import Data.ByteString.Builder
import Control.Concurrent (threadDelay)
import Annex.Common
@ -586,7 +587,8 @@ performTransitionsLocked jl ts neednewlocalbranch transitionedrefs = do
-- File is deleted; can't run any other
-- transitions on it.
return ()
ChangeFile content' -> do
ChangeFile builder -> do
let content' = toLazyByteString builder
sha <- hashBlob content'
Annex.Queue.addUpdateIndex $ Git.UpdateIndex.pureStreamer $
Git.UpdateIndex.updateIndexLine sha TreeFile (asTopFilePath file)