hlint tweaks
Remotes.hs next, and also Backend/* and Command/*
This commit is contained in:
parent
fd11b5a3e5
commit
57adb0347b
12 changed files with 74 additions and 82 deletions
|
@ -45,7 +45,7 @@ add queue subcommand params file = M.insertWith (++) action [file] queue
|
|||
{- Runs a queue on a git repository. -}
|
||||
run :: Git.Repo -> Queue -> IO ()
|
||||
run repo queue = do
|
||||
_ <- mapM (\(k, v) -> runAction repo k v) $ M.toList queue
|
||||
_ <- mapM (uncurry $ runAction repo) $ M.toList queue
|
||||
return ()
|
||||
|
||||
{- Runs an Action on a list of files in a git repository.
|
||||
|
@ -56,6 +56,6 @@ runAction repo action files = do
|
|||
unless (null files) runxargs
|
||||
where
|
||||
runxargs = pOpen WriteToPipe "xargs" ("-0":gitcmd) feedxargs
|
||||
gitcmd = ["git"] ++ Git.gitCommandLine repo
|
||||
gitcmd = "git" : Git.gitCommandLine repo
|
||||
(getSubcommand action:getParams action)
|
||||
feedxargs h = hPutStr h $ join "\0" files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue