note
This commit is contained in:
parent
d08c178f97
commit
c1eaf5b930
2 changed files with 11 additions and 6 deletions
|
@ -138,12 +138,14 @@ staged' ps l repo = guardSafeForLsFiles repo $
|
|||
|
||||
type StagedDetails = (RawFilePath, Maybe Sha, Maybe FileMode)
|
||||
|
||||
{- Returns details about all files that are staged in the index. -}
|
||||
{- Returns details about all files that are staged in the index.
|
||||
-
|
||||
- Note that, during a conflict, a file will appear in the list
|
||||
- more than once.
|
||||
-}
|
||||
stagedDetails :: [RawFilePath] -> Repo -> IO ([StagedDetails], IO Bool)
|
||||
stagedDetails = stagedDetails' []
|
||||
|
||||
{- Gets details about staged files, including the Sha of their staged
|
||||
- contents. -}
|
||||
stagedDetails' :: [CommandParam] -> [RawFilePath] -> Repo -> IO ([StagedDetails], IO Bool)
|
||||
stagedDetails' ps l repo = guardSafeForLsFiles repo $ do
|
||||
(ls, cleanup) <- pipeNullSplit' params repo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue