more OsPath conversion
Sponsored-by: Eve
This commit is contained in:
parent
dd01406018
commit
aa0f3f31da
23 changed files with 155 additions and 166 deletions
|
@ -137,7 +137,8 @@ parserLsTree long = case long of
|
|||
-- sha
|
||||
<*> (Ref <$> A8.takeTill A8.isSpace)
|
||||
|
||||
fileparser = asTopFilePath . Git.Quote.unquote <$> A.takeByteString
|
||||
fileparser = asTopFilePath . toOsPath . Git.Quote.unquote
|
||||
<$> A.takeByteString
|
||||
|
||||
sizeparser = fmap Just A8.decimal
|
||||
|
||||
|
@ -152,4 +153,6 @@ formatLsTree ti = S.intercalate (S.singleton (fromIntegral (ord ' ')))
|
|||
[ encodeBS (showOct (mode ti) "")
|
||||
, typeobj ti
|
||||
, fromRef' (sha ti)
|
||||
] <> (S.cons (fromIntegral (ord '\t')) (getTopFilePath (file ti)))
|
||||
]
|
||||
<> (S.cons (fromIntegral (ord '\t'))
|
||||
(fromOsPath (getTopFilePath (file ti))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue