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

ks/precompute-completion (was Re: What's cooking in git.git (Oct 2009, #04; Wed, 21))

From
Stephen Boyd <bebarino@gmail.com>
Date
Oct 22, 2009, 08:34 UTC
Message-ID
<4AE0190E.8020803@gmail.com>
In-Reply-To
<7veiovly35.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
Show 5 quoted lines
> * ks/precompute-completion (2009-10-05) 1 commit.
>   (merged to 'next' on 2009-10-14 at adf722a)
>  + Speedup bash completion loading
>
> Are people happy with this?

No. I now have rebase.sh, am.sh, etc. in my completion because of how git help -a fully lists git commands in libexec and elsewhere in my $PATH (which gets pointed to my build directory during make).

It's late and I'm tired, but I think we can just ignore files ending in *.sh, *.perl, etc.

diff --git a/contrib/completion/git-completion.bash.generate b/contrib/completion/git-completion.bash.generate
index 33b1d1d..6487fd5 100755
--- a/contrib/completion/git-completion.bash.generate
+++ b/contrib/completion/git-completion.bash.generate
@@ -24,6 +24,7 @@ __git_all_commands ()
        do
                case $i in
                *--*)             : helper pattern;;
+               *.sh|*.perl)      : build scripts;;
                *) echo $i;;
                esac
        done
Previous: Junio C HamanoNext: Sverre Rabbelier
Message 2 of 33 in “What's cooking in git.git (Oct 2009, #04; Wed, 21)”
  1. Junio C HamanoOct 22, 2009
  2. ks/precompute-completion (was Re: What's cooking in git.git (Oct 2009, #04; Wed, 21))Stephen Boyd, Oct 22, 2009
  3. Sverre RabbelierOct 22, 2009
  4. Stephen BoydOct 22, 2009
  5. A Large Angry SCMOct 22, 2009
  6. Johannes SchindelinOct 22, 2009
  7. Jakub NarebskiOct 22, 2009
  8. Nguyen Thai Ngoc DuyOct 22, 2009
  9. skillzero@gmail.comOct 22, 2009
  10. Junio C HamanoOct 22, 2009
  11. Stephen BoydOct 22, 2009
  12. Junio C HamanoOct 24, 2009
  13. add tests for git diff --submoduleJens Lehmann, Oct 23, 2009
  14. Junio C HamanoOct 24, 2009
  15. Clemens BuchacherOct 25, 2009
  16. Junio C HamanoOct 26, 2009
  17. Clemens BuchacherOct 26, 2009
  18. Stephen BoydOct 26, 2009
  19. Clemens BuchacherOct 26, 2009
  20. Shawn O. PearceOct 27, 2009
  21. Junio C HamanoOct 28, 2009
  22. Shawn O. PearceOct 27, 2009
  23. Shawn O. PearceOct 28, 2009
  24. A Large Angry SCMOct 22, 2009
  25. Sverre RabbelierOct 23, 2009
  26. Junio C HamanoOct 23, 2009
  27. Sverre RabbelierOct 23, 2009
  28. Junio C HamanoOct 23, 2009
  29. Sverre RabbelierOct 23, 2009
  30. Jakub NarebskiOct 23, 2009
  31. Sverre RabbelierOct 23, 2009
  32. A Large Angry SCMOct 23, 2009
  33. Sverre RabbelierOct 23, 2009

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.