summaryrefslogtreecommitdiff
path: root/Command/DiffDriver.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/DiffDriver.hs')
-rw-r--r--Command/DiffDriver.hs11
1 files changed, 6 insertions, 5 deletions
diff --git a/Command/DiffDriver.hs b/Command/DiffDriver.hs
index f6ef77ecd..2313e5f0d 100644
--- a/Command/DiffDriver.hs
+++ b/Command/DiffDriver.hs
@@ -13,12 +13,13 @@ import Annex.Content
import Annex.Link
import Git.Types
-cmd :: [Command]
-cmd = [dontCheck repoExists $
- command "diffdriver" ("[-- cmd --]") seek
- SectionPlumbing "external git diff driver shim"]
+cmd :: Command
+cmd = dontCheck repoExists $
+ command "diffdriver" SectionPlumbing
+ "external git diff driver shim"
+ ("-- cmd --") (withParams seek)
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek = withWords start
start :: [String] -> CommandStart