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
|
@ -74,8 +74,9 @@ mergeFile :: String -> FilePath -> CatFileHandle -> Repo -> IO (Maybe String)
|
|||
mergeFile info file h repo = case filter (/= nullSha) [Ref asha, Ref bsha] of
|
||||
[] -> return Nothing
|
||||
(sha:[]) -> use sha
|
||||
shas -> use =<< either return (hashObject repo BlobObject . unlines) =<<
|
||||
calcMerge . zip shas <$> mapM getcontents shas
|
||||
shas -> use
|
||||
=<< either return (\s -> hashObject BlobObject (unlines s) repo)
|
||||
=<< calcMerge . zip shas <$> mapM getcontents shas
|
||||
where
|
||||
[_colonmode, _bmode, asha, bsha, _status] = words info
|
||||
getcontents s = map L.unpack . L.lines .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue