rawfilepath conversion
This commit is contained in:
parent
cc32e31161
commit
f09e299156
6 changed files with 9 additions and 9 deletions
|
@ -433,7 +433,7 @@ rewriteIndex r
|
|||
reinject (file, sha, mode, _) = case toTreeItemType mode of
|
||||
Nothing -> return Nothing
|
||||
Just treeitemtype -> Just <$>
|
||||
UpdateIndex.stageFile sha treeitemtype (fromRawFilePath file) r
|
||||
UpdateIndex.stageFile sha treeitemtype file r
|
||||
|
||||
newtype GoodCommits = GoodCommits (S.Set Sha)
|
||||
|
||||
|
|
|
@ -99,15 +99,15 @@ updateIndexLine sha treeitemtype file = L.fromStrict $
|
|||
<> "\t"
|
||||
<> indexPath file
|
||||
|
||||
stageFile :: Sha -> TreeItemType -> FilePath -> Repo -> IO Streamer
|
||||
stageFile :: Sha -> TreeItemType -> RawFilePath -> Repo -> IO Streamer
|
||||
stageFile sha treeitemtype file repo = do
|
||||
p <- toTopFilePath (toRawFilePath file) repo
|
||||
p <- toTopFilePath file repo
|
||||
return $ pureStreamer $ updateIndexLine sha treeitemtype p
|
||||
|
||||
{- A streamer that removes a file from the index. -}
|
||||
unstageFile :: FilePath -> Repo -> IO Streamer
|
||||
unstageFile :: RawFilePath -> Repo -> IO Streamer
|
||||
unstageFile file repo = do
|
||||
p <- toTopFilePath (toRawFilePath file) repo
|
||||
p <- toTopFilePath file repo
|
||||
return $ unstageFile' p
|
||||
|
||||
unstageFile' :: TopFilePath -> Streamer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue