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, 14:37 UTC
Message-ID
<3bbc18d20611010637s6d05aecbt98322b62cf7235e8@mail.gmail.com>
In-Reply-To
<4548AFA2.1040606@shadowen.org>
On 11/1/06, Andy Whitcroft <apw@shadowen.org> wrote:
>         git cat-file -p <commit-ish>:<file>

Nice! Thanks! I had guessed "git cat-file -p <commit-ish>/<file>" but didn't try a colon as the separator. The colon syntax ought to be mentioned in the git-cat-file man page.

Previous: Andy WhitcroftNext: Andy Whitcroft
Message 3 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.