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
Linus Torvalds <torvalds@osdl.org>
Date
Apr 20, 2005, 22:09 UTC
Message-ID
<Pine.LNX.4.58.0504201503050.6467@ppc970.osdl.org>
In-Reply-To
<20050420215117.GJ19112@pasky.ji.cz>
On Wed, 20 Apr 2005, Petr Baudis wrote:
> 
> Grm. Cg is also name of some scary NVidia thing, and cog is GNOME
> Configurator. CGT are Chimera Grid Tools, but I think we can clash
> with those - at least *I* wouldn't mind. ;-)

I realize that there is probably a law that there has to be a space, but I actually personally use tab-completion all the time, and in many ways prefer a name that can be completed without having to play games with magic bash completion files.

So how about using a dash instead of a space, and making things be
	cg-pull
	cg-update

etc? You can link them all to the same script if you don't like having multiple scripts, and just match with

	case "$0" in
	*-pull)
		...
		;;
	*-update)
		...
		;;
or something.

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..

Just because rcs/cvs/everybody-and-his-dog thinks it is cool to have a space there and have different meaning for flags depending on whether they are before the command or after the command doesn't mean that they are necessarily right..

Just an idea,
		Linus
Previous: Steven ColeNext: Petr Baudis
Message 9 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.