Re: [TOY PATCH] git wrapper: show similar command names for an unknown command
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jun 7, 2008, 17:51 UTC
- Message-ID
- <20080607175103.GA5822@steel.home>
- In-Reply-To
- <alpine.DEB.1.00.0806071603470.1783@racer>
Johannes Schindelin, Sat, Jun 07, 2008 17:04:14 +0200:
> - for (i = 0; i < main_cmds.cnt; i++) {
> + for (i = 0; i < main_cmds.cnt && i < 5; i++) {I accidentally considered "i" just the index in the global command table. Of course it is better :)