Commits on Feb 4, 2010
  1. Typofixes outside documentation area

    gitster committed Feb 4, 2010
        begining -> beginning
        canonicalizations -> canonicalization
        comand -> command
        dewrapping -> unwrapping
        dirtyness -> dirtiness
        explicitely -> explicitly
        feeded -> fed
        impiled -> implied
        madatory -> mandatory
        mimick -> mimic
        preceeding -> preceding
        reqeuest -> request
        substition -> substitution
    Signed-off-by: Junio C Hamano <>
Commits on Aug 31, 2008
  1. git wrapper: DWIM mistyped commands

    dscho authored and gitster committed Aug 31, 2008
    This patch introduces a modified Damerau-Levenshtein algorithm into
    Git's code base, and uses it with the following penalties to show some
    similar commands when an unknown command was encountered:
    	swap = 0, insertion = 1, substitution = 2, deletion = 4
    A typical output would now look like this:
    	$ git sm
    	git: 'sm' is not a git-command. See 'git --help'.
    	Did you mean one of these?
    The cut-off is at similarity rating 6, which was empirically determined
    to give sensible results.
    As a convenience, if there is only one candidate, Git continues under
    the assumption that the user mistyped it.  Example:
    	$ git reabse
    	WARNING: You called a Git program named 'reabse', which does
    	not exist.
    	Continuing under the assumption that you meant 'rebase'
    Signed-off-by: Johannes Schindelin <>
    Signed-off-by: Alex Riesen <>
    Signed-off-by: Junio C Hamano <>