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

Re: [q] git-diff --reverse 7def2be1..7def2be1^

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 28, 2008, 22:08 UTC
Message-ID
<7vk5g9kyap.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080626093726.GA24577@elte.hu>
Ingo Molnar <mingo@elte.hu> writes:
Show 11 quoted lines
> * Jakub Narebski <jnareb@gmail.com> wrote:
> ...
>> contrib/completion/git-completion.bash in git repository.  
>
> btw., i had to turn this off - it made certain types of file completions 
> almost unusable, by adding a 2-3 seconds delay (during which bash would 
> just spin around burning CPU time calculating its completion guesses).
>
> and that was on a 3 GHz dual-core box ...
>
> so please do not remove the git-* commands, they are really useful.

The slowness of the completion script (especially the time it takes before it decides to complete pathnames) has been bothering me for some time, so I share Ingo's frustration, but it hasn't got to the point to disable it.

After typing:
	$ git checkout master -- Docu

and then hitting the "Tab" key to complete before I see "mentation/", it takes about 2-3 seconds for the first time, and after that it becomes torelable. Is it the command table bootstrapping that is taking this long?

<offtopic> I'll be mostly offline for the rest of the day, so you do not have to respond in a hurry. </offtopic>

Previous: Nicolas PitreNext: Mikael Magnusson
Message 23 of 25 in “[q] git-diff --reverse 7def2be1..7def2be1^”
  1. Ingo MolnarJun 20, 2008
  2. Junio C HamanoJun 20, 2008
  3. Junio C HamanoJun 20, 2008
  4. Ingo MolnarJun 20, 2008
  5. Ingo MolnarJun 20, 2008
  6. Jakub NarebskiJun 20, 2008
  7. Mikael MagnussonJun 20, 2008
  8. Jakub NarebskiJun 20, 2008
  9. Ingo MolnarJun 20, 2008
  10. Andreas EricssonJun 22, 2008
  11. Dmitry PotapovJul 6, 2008
  12. Junio C HamanoJul 6, 2008
  13. Dmitry PotapovJul 6, 2008
  14. Junio C HamanoJul 6, 2008
  15. Dmitry PotapovJul 7, 2008
  16. Matthieu MoyJun 20, 2008
  17. Ingo MolnarJun 20, 2008
  18. Jakub NarebskiJun 20, 2008
  19. Ingo MolnarJun 26, 2008
  20. Jakub NarebskiJun 26, 2008
  21. Ingo MolnarJun 26, 2008
  22. Nicolas PitreJun 26, 2008
  23. Junio C HamanoJun 28, 2008
  24. Mikael MagnussonJun 20, 2008
  25. Ingo MolnarJun 20, 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.