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

Re: Contents of file for a commit

From
Jeff King <peff@peff.net>
Date
Jan 27, 2008, 04:28 UTC
Message-ID
<20080127042854.GA25133@coredump.intra.peff.net>
In-Reply-To
<18332.1826.220373.129812@lisa.zopyra.com>
On Sat, Jan 26, 2008 at 10:22:58PM -0600, Bill Lear wrote:
> How can I do the equivalent of 'cvs co -r <commit> -p <file>' in git?
> I want to see the entire contents of a file as it existed after a
> particular commit was introduced.
Try 'git show <commit>:<file>'.
-Peff
Previous: Bill LearNext: Shawn O. Pearce
Message 2 of 6 in “Contents of file for a commit”
  1. Bill LearJan 27, 2008
  2. Jeff KingJan 27, 2008
  3. Shawn O. PearceJan 27, 2008
  4. Jeff KingJan 27, 2008
  5. Shawn O. PearceJan 27, 2008
  6. Bill LearJan 27, 2008

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.