diff options
author | Joey Hess <joey@kitenet.net> | 2012-04-12 15:34:41 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-04-12 15:37:21 -0400 |
commit | 52a158a7c6b9b7df93db30dfc802c8c350524951 (patch) | |
tree | 4dbe0e83577937cf36bd893f574a2c12046cdaf5 /GitAnnexShell.hs | |
parent | fa45175210319bfe771b15c539cf39905eb1a3c1 (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.hs | 2 |
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 () |