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

git shorthands (was: Re: Wine + GIT)

From
Andreas Ericsson <ae@op5.se>
Date
Dec 6, 2005, 21:22 UTC
Message-ID
<43960113.8000209@op5.se>
In-Reply-To
<1133891589.8577.63.camel@cashmere.sps.mot.com>
Jon Loeliger wrote:
Show 10 quoted lines
> 
> That way:
>     "git mer" would fail
>     "git merge" would run "git-merge"
>     "git merge-" would fail
>     "git merge-o" would fail,
>     "git-merge-oc" would run "git-merge-octopus".
> 
> Any interest?  Overkill?  Bad idea?
> 

I think it's overkill. It would be better, methinks, to add mnemonic-ish shorthands for the porcelainish commands, so that

	git fp   => git-format-patch
	git co   => git-checkout
	git up   => git-update-index
	git octo => git-merge-octopus
	git fsck => git-fsck-objects
	git hash => git-hash-object
and so on...

This because non-ambiguous is rarely logical (for git at least, which has 'git-<family>-<action | object-type>) unless one knows the entire command anyways. Ambiguity may also be introduced by later commands, and then you'll need to re-learn them. I always find that annoying.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Jon LoeligerNext: Ben Clifford
Message 8 of 15 in “Wine + GIT”
  1. Mike McCormackDec 5, 2005
  2. Jeff GarzikDec 6, 2005
  3. Junio C HamanoDec 6, 2005
  4. J. Bruce FieldsDec 6, 2005
  5. Junio C HamanoDec 6, 2005
  6. J. Bruce FieldsDec 6, 2005
  7. Jon LoeligerDec 6, 2005
  8. git shorthands (was: Re: Wine + GIT)Andreas Ericsson, Dec 6, 2005
  9. Ben CliffordDec 7, 2005
  10. Jeff GarzikDec 6, 2005
  11. Mike McCormackDec 6, 2005
  12. Jeff GarzikDec 6, 2005
  13. Nick HengeveldDec 6, 2005
  14. Andreas EricssonDec 6, 2005
  15. Marco CostalbaDec 6, 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.