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

Re: [ANNOUNCE] git-pasky-0.6.2 && heads-up on upcoming changes

From
IMIngo Molnar <mingo@elte.hu>
Date
Apr 21, 2005, 07:49 UTC
Message-ID
<20050421074908.GA1376@elte.hu>
In-Reply-To
<Pine.LNX.4.58.0504201503050.6467@ppc970.osdl.org>
* Linus Torvalds <torvalds@osdl.org> wrote:
> Yeah, yeah, it looks different from "cvs update", but dammit, wouldn't 
> it be cool to just write "cg-<tab><tab>" and see the command choices?  
> Or "cg-up<tab>" and get cg-update done for you..
add this line to your ~/.bashrc:
 complete -W "add addremote apply cancel ci commit diff export fork help init log ls lsobj lsremote merge pull rm seek status tag track version" git

and you'll get all the argument completions, after "git " (it works on arguments, after the space). (you can even customize it to list only the ones you typically use, to make the completion faster) This first showed up in zsh but now bash knows it too. (see 'Programmable Completions' in man bash)

	Ingo
Previous: David A. WheelerNext: Andrew Morton
Message 30 of 33 in “[ANNOUNCE] git-pasky-0.6.2 && heads-up on upcoming changes”
  1. Petr BaudisApr 20, 2005
  2. Petr BaudisApr 20, 2005
  3. Greg KHApr 20, 2005
  4. Mike TahtApr 20, 2005
  5. Joshua T. CorbinApr 20, 2005
  6. Petr BaudisApr 20, 2005
  7. Randy.DunlapApr 20, 2005
  8. Steven ColeApr 20, 2005
  9. Linus TorvaldsApr 20, 2005
  10. Petr BaudisApr 20, 2005
  11. Greg KHApr 20, 2005
  12. Linus TorvaldsApr 21, 2005
  13. Linus TorvaldsApr 21, 2005
  14. Daniel JacobowitzApr 21, 2005
  15. SeanApr 21, 2005
  16. Linus TorvaldsApr 21, 2005
  17. Dave JonesApr 21, 2005
  18. Junio C HamanoApr 21, 2005
  19. Daniel JacobowitzApr 21, 2005
  20. Petr BaudisApr 21, 2005
  21. Edgar ToernigApr 21, 2005
  22. Petr BaudisApr 21, 2005
  23. Paul JacksonApr 24, 2005
  24. Randy.DunlapApr 21, 2005
  25. SeanApr 21, 2005
  26. Greg KHApr 21, 2005
  27. Paul JacksonApr 24, 2005
  28. Matthias UrlichsApr 21, 2005
  29. Removing command dispatcher (was Re: [ANNOUNCE] git-pasky-0.6.2 && heads-up on upcoming changes)David A. Wheeler, Apr 21, 2005
  30. Ingo MolnarApr 21, 2005
  31. Andrew MortonApr 25, 2005
  32. Bryan DonlanApr 21, 2005
  33. Petr BaudisApr 21, 2005

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.