make watch use the queue
May not work. Certianly needs to flush the queue from time to time when only symlink changes are being made.
This commit is contained in:
parent
0a11b35d89
commit
20f425be19
5 changed files with 35 additions and 24 deletions
|
@ -36,8 +36,8 @@ hashFile h file = CoProcess.query h send receive
|
|||
receive from = getSha "hash-object" $ hGetLine from
|
||||
|
||||
{- Injects some content into git, returning its Sha. -}
|
||||
hashObject :: Repo -> ObjectType -> String -> IO Sha
|
||||
hashObject repo objtype content = getSha subcmd $ do
|
||||
hashObject :: ObjectType -> String -> Repo -> IO Sha
|
||||
hashObject objtype content repo = getSha subcmd $ do
|
||||
(h, s) <- pipeWriteRead (map Param params) content repo
|
||||
length s `seq` do
|
||||
forceSuccess h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue