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

Re: Questions about git-rev-parse

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Feb 28, 2007, 03:33 UTC
Message-ID
<Pine.LNX.4.64.0702271921110.12485@woody.linux-foundation.org>
In-Reply-To
<20070228025258.GD2178@thunk.org>
On Tue, 27 Feb 2007, Theodore Tso wrote:
> 
> So while I'm asking questions, where did the "*-ish" terminology come 
> from, anyway?

It's means "approximate" or "having the character of". Quite like the normal English meaning of "thirtyish" or "fortyish" when you talk about approximate ages of people, or "tallish" when you talk about height. Google for "ish suffix", and you'll get as your first hit:

	http://www.randomhouse.com/wotd/index.pperl?date=19990617
and the git usage is actually just a variation of that.

So a "tree-ish" is not necessarily exactly a tree, but it has all the characteristics of a tree (by virtue of there being a well-defined 1:1 relationship with a tree).

> I had the mental model (which I had intuited, since no git documentation 
> I could find had bothered to explain it) that -ish meant something like 
> specifier, so "tree-ish" meant tree specifier, so a commit id could get 
> dereferenced into a tree id, so it could be used to specify a tree.
No, it really is English. At least grammatically.

A "tree-ish" is "like a tree", exactly like "sheepish" is "like a sheep". Nothing really git-specific about it, except for it certainly having become common usage in a way that it may not be normally ;)

		Linus
Previous: Theodore TsoNext: Theodore Tso
Message 4 of 9 in “Questions about git-rev-parse”
  1. Theodore Ts'oFeb 28, 2007
  2. Junio C HamanoFeb 28, 2007
  3. Theodore TsoFeb 28, 2007
  4. Linus TorvaldsFeb 28, 2007
  5. Theodore TsoFeb 28, 2007
  6. Andy ParkinsFeb 28, 2007
  7. Linus TorvaldsFeb 28, 2007
  8. Linus TorvaldsFeb 28, 2007
  9. Willhelm BuschMar 1, 2007

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.