summaryrefslogtreecommitdiff
path: root/Git/Command.hs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-07-21 16:35:23 -0400
committerJoey Hess <joey@kitenet.net>2014-07-21 16:35:23 -0400
commit619c8bd261a4fee0b0d40b664e55c51782e062f7 (patch)
treeba39cd283d4c0fecb61c7a1bbbb803cc9459a222 /Git/Command.hs
parent7882653e7856df87e598464379951ec89775cd1a (diff)
downloadgit-repair-619c8bd261a4fee0b0d40b664e55c51782e062f7.tar.gz
Merge from git-annex.
Diffstat (limited to 'Git/Command.hs')
-rw-r--r--Git/Command.hs9
1 files changed, 0 insertions, 9 deletions
diff --git a/Git/Command.hs b/Git/Command.hs
index a0c7c4b..30d2dcb 100644
--- a/Git/Command.hs
+++ b/Git/Command.hs
@@ -9,13 +9,10 @@
module Git.Command where
-import System.Process (std_out, env)
-
import Common
import Git
import Git.Types
import qualified Utility.CoProcess as CoProcess
-import Utility.Batch
{- Constructs a git command line operating on the specified repo. -}
gitCommandLine :: [CommandParam] -> Repo -> [CommandParam]
@@ -33,12 +30,6 @@ runBool :: [CommandParam] -> Repo -> IO Bool
runBool params repo = assertLocal repo $
boolSystemEnv "git" (gitCommandLine params repo) (gitEnv repo)
-{- Runs git in batch mode. -}
-runBatch :: BatchCommandMaker -> [CommandParam] -> Repo -> IO Bool
-runBatch batchmaker params repo = assertLocal repo $ do
- let (cmd, params') = batchmaker ("git", gitCommandLine params repo)
- boolSystemEnv cmd params' (gitEnv repo)
-
{- Runs git in the specified repo, throwing an error if it fails. -}
run :: [CommandParam] -> Repo -> IO ()
run params repo = assertLocal repo $