git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add help.autocorrect to enable/disable autocorrecting

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 23, 2008, 16:44 UTC
Message-ID
<alpine.DEB.1.00.0807231743030.8986@racer>
In-Reply-To
<20080722222510.GA4474@blimp.local>
Hi,
On Wed, 23 Jul 2008, Alex Riesen wrote:
Show 6 quoted lines
> Johannes Schindelin, Tue, Jul 22, 2008 23:44:50 +0200:
> > However, I think that the intention of this patch is too much DWIMery, 
> > which might be good for me (just like my "git add remote" patch), but 
> > not for the general audience.
> 
> Mustn't be good for all
You meant "needn't"?  It is good for me ;-)
> And thanks for sharing.
You're welcome.
> +	n = 1;
> +	while (n < main_cmds.cnt &&
> +		best_similarity == similarity(main_cmds.names[n]->name))
> +		++n;
Mini-nit: you never ask for the value of n, only if it is 1 or larger.  So 
you do not need to count...

Ciao, Dscho

Previous: Alex RiesenNext: Alex Riesen
Message 11 of 20 in “git wrapper: DWIM mistyped commands”
  1. git wrapper: DWIM mistyped commandsJohannes Schindelin, Jul 22, 2008
  2. [SCNR] Re: [FYI PATCH] git wrapper: DWIM mistyped commandsPierre Habouzit, Jul 22, 2008
  3. Johannes SchindelinJul 22, 2008
  4. Pierre HabouzitJul 22, 2008
  5. Alex RiesenJul 22, 2008
  6. Add help.autocorrect to enable/disable autocorrectingAlex Riesen, Jul 22, 2008
  7. Johannes SchindelinJul 22, 2008
  8. Add help.autocorrect to enable/disable autocorrectingAlex Riesen, Jul 22, 2008
  9. Johannes SchindelinJul 22, 2008
  10. Add help.autocorrect to enable/disable autocorrectingAlex Riesen, Jul 22, 2008
  11. Johannes SchindelinJul 23, 2008
  12. Alex RiesenJul 23, 2008
  13. Johannes SchindelinJul 23, 2008
  14. Johannes SchindelinJul 23, 2008
  15. Junio C HamanoJul 22, 2008
  16. Wait help.autocorrect deciseconds before running corrected commandAlex Riesen, Jul 23, 2008
  17. Johannes SchindelinJul 23, 2008
  18. Alex RiesenJul 23, 2008
  19. Junio C HamanoJul 22, 2008
  20. Sverre RabbelierJul 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.