fix indent for readability
This commit is contained in:
parent
5a3ed3f910
commit
1115fb1f9b
1 changed files with 5 additions and 5 deletions
|
@ -87,11 +87,11 @@ mergeFile :: S.ByteString -> RawFilePath -> HashObjectHandle -> CatFileHandle ->
|
||||||
mergeFile info file hashhandle h = case S8.words info of
|
mergeFile info file hashhandle h = case S8.words info of
|
||||||
[_colonmode, _bmode, asha, bsha, _status] ->
|
[_colonmode, _bmode, asha, bsha, _status] ->
|
||||||
case filter (`notElem` nullShas) [Ref asha, Ref bsha] of
|
case filter (`notElem` nullShas) [Ref asha, Ref bsha] of
|
||||||
[] -> return Nothing
|
[] -> return Nothing
|
||||||
(sha:[]) -> use sha
|
(sha:[]) -> use sha
|
||||||
shas -> use
|
shas -> use
|
||||||
=<< either return (hashBlob hashhandle . L8.unlines)
|
=<< either return (hashBlob hashhandle . L8.unlines)
|
||||||
=<< calcMerge . zip shas <$> mapM getcontents shas
|
=<< calcMerge . zip shas <$> mapM getcontents shas
|
||||||
_ -> return Nothing
|
_ -> return Nothing
|
||||||
where
|
where
|
||||||
use sha = return $ Just $
|
use sha = return $ Just $
|
||||||
|
|
Loading…
Add table
Reference in a new issue