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

Re: Retrieve a specific file from some revision.

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Mar 16, 2010, 21:59 UTC
Message-ID
<46a038f91003161459t58c8df59q2b7fa18c1fccba88@mail.gmail.com>
In-Reply-To
<87vdcwxfit.fsf@newsguy.com>
On Tue, Mar 16, 2010 at 2:55 PM, Harry Putnam <reader@newsguy.com> wrote:
> How would I do that in bazaar/git?
The easiests, most convenient is:
   git show <revision>:path/to/file.c
git show can do various other things -- like show you a commit.

You should really follow a tutorial for git (and/or bazaar) to get "the basics". Any good tutorial will cover git show (but may not touch this specific point) and a few others.

It is safe to say that bazaar, git and hg have a good command for something clear and basic like this. Asking these questions probably won't help you decide what you want to decide ;-) --

m
-- 
 martin.langhoff@gmail.com
 martin@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
Previous: Harry PutnamNext: Ben Finney
Message 2 of 3 in “Retrieve a specific file from some revision.”
  1. Harry PutnamMar 16, 2010
  2. Martin LanghoffMar 16, 2010
  3. Ben FinneyMar 16, 2010

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.