DescriptionMake git cl smarter about subcommands typos.
Look for either a unique prefix or for an approximation of the shortest
Levenshtein distance. So all of these will resolve to 'git cl upload':
git cl upl
git cl uplaod
These won't resolve:
git cl up # it shares prefix with 'upstream'
git cl uplao # not similar enough
Also align help against longest command instead of hard coded '10'. The help
page was distorded.
R=iannucci@chromium.org
BUG=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=206820
Patch Set 1 #Patch Set 2 : cleaner #Patch Set 3 : Use 0.3 instead of 0.1 as minimum difference #Messages
Total messages: 7 (0 generated)
|