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

Re: How to view an old revision?

From
MMMatt McCutchen <hashproduct+git@gmail.com>
Date
Nov 1, 2006, 16:25 UTC
Message-ID
<3bbc18d20611010825ha4063d6wacf4f997d4652d35@mail.gmail.com>
In-Reply-To
<7vzmbb2m42.fsf@assigned-by-dhcp.cox.net>
On 11/1/06, Junio C Hamano <junkio@cox.net> wrote:
Show 6 quoted lines
> I was actually reviewing the documentation of git-rev-parse and
> noticed that it talks about naming objects in the section called
> "SPECIFYING REVISIONS".  The title implies that it is about
> committish (because we think of "revisions" as something that is
> used in walking commit ancestry chains), but it actually talks
> about naming objects of any type.

There's no way I would have known to look in git-rev-parse. My git-rev-parse man page doesn't mention the colon syntax, but now I see that part in git's gitweb; my man page must be too old. Either (1) or (2) would have been enough for me to figure out that the colon syntax would do what I wanted, but to grab the attention of the less persistent user, it would be good to mention the particular case of "git-cat-file <commit-ish>:<file>" in the git-cat-file man page.

Previous: Junio C HamanoNext: Andy Whitcroft
Message 6 of 7 in “How to view an old revision?”
  1. Matt McCutchenNov 1, 2006
  2. Andy WhitcroftNov 1, 2006
  3. Matt McCutchenNov 1, 2006
  4. Andy WhitcroftNov 1, 2006
  5. Junio C HamanoNov 1, 2006
  6. Matt McCutchenNov 1, 2006
  7. Andy WhitcroftNov 1, 2006

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.