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.
This commit is contained in:
Joey Hess 2012-04-12 15:34:41 -04:00
parent fa45175210
commit 52a158a7c6
8 changed files with 115 additions and 21 deletions

View file

@ -131,4 +131,4 @@ header :: String
header = "Usage: git-annex command [option ..]"
run :: [String] -> IO ()
run args = dispatch args cmds options header Git.Construct.fromCurrent
run args = dispatch True args cmds options header Git.Construct.fromCurrent