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

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

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 26, 2008, 11:02 UTC
Message-ID
<200806261302.03952.jnareb@gmail.com>
In-Reply-To
<20080626093726.GA24577@elte.hu>
On Thu, 26. Jun 2008, Ingo Molnar wrote:
Show 14 quoted lines
> * Jakub Narebski <jnareb@gmail.com> wrote:
>> Ingo Molnar <mingo@elte.hu> writes:
>>> * Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
>>> 
>>>> (BTW, git-foo is being obsoleted in favor of "git foo")
>>> 
>>> hm, can Bash be taught to do command completion on 'git rer<tab>', like 
>>> it is able to do on git-rer<tab> ?
>> 
>> 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).

Perhaps it would be better when "ceiling dir" feature in git, and configured, so git don't waste time searching for git repositories where there aren't any.

> and that was on a 3 GHz dual-core box ...

I think this might depend more on filesystem used, and file hierarchy. And also probably on the number of branches...

That said, I'm not fully happy with git bash completion[*1*] either: one of complaints is that when completing "filename." on filename with extension (for example to "filename.h") it sometimes treats "filename." as beiginning of "<rev1>..<rev2>", and completes to "filename..", even if there no 'filename' ref in repository.

> so please do not remove the git-* commands, they are really useful.

Well, they are not removed, just moved aside (to address complaints of cluttering $PATH with 130+ programs), and I think that you can always install everything into /usr/bin/, as usual. Although it would be nice to be able to move aside only internal (*--*) commands, or perhaps even internal and plumbing.

Footnotes: ========== [*1*] I wonder how zsh git completion fares in comparison.

-- 
Jakub Narebski
Poland
Previous: Ingo MolnarNext: Ingo Molnar
Message 20 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.