tweak
This commit is contained in:
parent
b57a4566d3
commit
7724f895a8
1 changed files with 7 additions and 4 deletions
|
@ -23,13 +23,16 @@ inRepo :: Repo -> [FilePath] -> IO [FilePath]
|
||||||
inRepo repo l = pipeNullSplit repo $
|
inRepo repo l = pipeNullSplit repo $
|
||||||
Params "ls-files --cached -z --" : map File l
|
Params "ls-files --cached -z --" : map File l
|
||||||
|
|
||||||
{- Scans for files at the specified locations that are not checked into
|
{- Scans for files at the specified locations that are not checked into git. -}
|
||||||
- git. -}
|
|
||||||
notInRepo :: Repo -> Bool -> [FilePath] -> IO [FilePath]
|
notInRepo :: Repo -> Bool -> [FilePath] -> IO [FilePath]
|
||||||
notInRepo repo include_ignored l =
|
notInRepo repo include_ignored l =
|
||||||
pipeNullSplit repo $ [Params "ls-files --others"]++exclude++[Params "-z --"] ++ map File l
|
pipeNullSplit repo $
|
||||||
|
[Params "ls-files --others"] ++ exclude ++
|
||||||
|
[Params "-z --"] ++ map File l
|
||||||
where
|
where
|
||||||
exclude = if include_ignored then [] else [Param "--exclude-standard"]
|
exclude
|
||||||
|
| include_ignored = []
|
||||||
|
| otherwise = [Param "--exclude-standard"]
|
||||||
|
|
||||||
{- Returns a list of all files that are staged for commit. -}
|
{- Returns a list of all files that are staged for commit. -}
|
||||||
staged :: Repo -> [FilePath] -> IO [FilePath]
|
staged :: Repo -> [FilePath] -> IO [FilePath]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue