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

Re: [PATCH] doc: use 'ref' instead of 'commit' for merge-base arguments

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 3, 2020, 20:08 UTC
Message-ID
<xmqq5zfl8alw.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<nycvar.QRO.7.76.6.2003032035510.46@tvgsbejvaqbjf.bet>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 7 quoted lines
>
> We do not only want commit objects. It is totally legitimate to ask
>
> 	git merge-base HEAD v2.25.0
>
> (v2.25.0 is of course not a commit, it is a tag that _refers_ to a
> commit.)

I meant to say (and was expecting those who know to know) committish, of course.

> Earlier, we would probably have called this a "commit-ish", but since
> users got so confused by this instance of Git Speak (is my interpretation
> of the reason, at least), we tend to call them "revs" these days.

I am not among that "we". "rev" is an older and even more nerdy Git speak that was invented back when Linus was active, and as you can see, we used the word to mean not just commit or commit-ish, but anything that can be turned into an object name (you'd realize that you know it already, when you think about what 'rev' means in "git rev-parse"). The phrase *-ish came much later (I think I was among those who started it).

Previous: Johannes SchindelinNext: Takuya N via GitGitGadget
Message 6 of 9 in “doc: use 'ref' instead of 'commit' for merge-base arguments”
  1. doc: use 'ref' instead of 'commit' for merge-base argumentsTakuya N via GitGitGadget, Mar 3, 2020
  2. Bryan TurnerMar 3, 2020
  3. Johannes SchindelinMar 3, 2020
  4. Junio C HamanoMar 3, 2020
  5. Johannes SchindelinMar 3, 2020
  6. Junio C HamanoMar 3, 2020
  7. doc: use 'rev' instead of 'commit' for merge-base argumentsTakuya N via GitGitGadget, Mar 4, 2020
  8. Junio C HamanoMar 4, 2020
  9. Junio C HamanoMar 4, 2020

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.