summaryrefslogtreecommitdiff
path: root/Git.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-09-28 14:47:56 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-09-28 14:48:00 -0400
commit4f4eaf387ab801157cb8986a9ca3542a977e9e03 (patch)
treedef9caf06f70677725348979f77abd4c262971d9 /Git.hs
parenta3cb5c47e5f4167c711ab57f4b06d6c9d56536c8 (diff)
golf
Diffstat (limited to 'Git.hs')
-rw-r--r--Git.hs7
1 files changed, 2 insertions, 5 deletions
diff --git a/Git.hs b/Git.hs
index 86a8c7695..b5464859e 100644
--- a/Git.hs
+++ b/Git.hs
@@ -451,11 +451,8 @@ commit g message newref parentrefs = do
{- Reads null terminated output of a git command (as enabled by the -z
- parameter), and splits it into a list of files/lines/whatever. -}
pipeNullSplit :: Repo -> [CommandParam] -> IO [FilePath]
-pipeNullSplit repo params = do
- fs0 <- pipeRead repo params
- return $ split0 fs0
- where
- split0 s = filter (not . null) $ split "\0" s
+pipeNullSplit repo params = filter (not . null) . split "\0" <$>
+ pipeRead repo params
{- Runs git config and populates a repo with its config. -}
configRead :: Repo -> IO Repo