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

Retrieve a specific file from some revision.

From
HPHarry Putnam <reader@newsguy.com>
Date
Mar 16, 2010, 18:55 UTC
Message-ID
<87vdcwxfit.fsf@newsguy.com>

First, let me just make sure this group is the general question/discussion group for the versioning tool `bazaar' on the web at: http://bazaar.canonical.com/en/

I asked this question on a mercurial group too. Probably should have just crossposted so as not to have two different messgae-ids involved. I have done that with this post on bazarre-ng and git groups.

I'm not just jerking around but want to know how this would be done. Just reading docu doesn't usually really help me until wade into something but this time I want to choose a versioning tool that I can readily do things I've learned to rely on.

Reprint: ------- --------- ---=--- --------- --------

I've never used any versioning tool but cvs. Something I do often with cvs is retrieve a previous state of a single file..

Say I wanted to use the hosts file as it was at revision 1.23.
Not just a diff, but the actual file.
(I would)
  cd cvsrepo
    cvs update -p -r1.23 <HOST>/etc/hosts > ~/hosts_HOST_r1.23
  Would create the file as it was at rev. 1.23 for host HOST.
How would I do that in bazaar/git? (which ever newsgroup this is on)
 
Next: Martin Langhoff
Message 1 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.