summaryrefslogtreecommitdiff
path: root/GitAnnexShell.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-04-12 15:34:41 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-04-12 15:37:21 -0400
commit52a158a7c6b9b7df93db30dfc802c8c350524951 (patch)
tree4dbe0e83577937cf36bd893f574a2c12046cdaf5 /GitAnnexShell.hs
parentfa45175210319bfe771b15c539cf39905eb1a3c1 (diff)
autocorrection
git-annex (but not git-annex-shell) supports the git help.autocorrect configuration setting, doing fuzzy matching using the restricted Damerau-Levenshtein edit distance, just as git does. This adds a build dependency on the haskell edit-distance library.
Diffstat (limited to 'GitAnnexShell.hs')
-rw-r--r--GitAnnexShell.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/GitAnnexShell.hs b/GitAnnexShell.hs
index 3394bc477..0cf81f0e2 100644
--- a/GitAnnexShell.hs
+++ b/GitAnnexShell.hs
@@ -83,7 +83,7 @@ builtins = map cmdname cmds
builtin :: String -> String -> [String] -> IO ()
builtin cmd dir params = do
checkNotReadOnly cmd
- dispatch (cmd : filterparams params) cmds options header $
+ dispatch False (cmd : filterparams params) cmds options header $
Git.Construct.repoAbsPath dir >>= Git.Construct.fromAbsPath
external :: [String] -> IO ()