git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
To: git@vger.kernel.org
Cc: bazaar@lists.canonical.com
Subject: Retrieve a specific file from some revision.
Date: Tue, 16 Mar 2010 13:55:38 -0500	[thread overview]
Message-ID: <87vdcwxfit.fsf@newsguy.com> (raw)

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)


 

             reply	other threads:[~2010-03-16 21:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-16 18:55 Harry Putnam [this message]
2010-03-16 21:59 ` Retrieve a specific file from some revision Martin Langhoff
2010-03-16 22:48 ` Ben Finney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vdcwxfit.fsf@newsguy.com \
    --to=reader@newsguy.com \
    --cc=bazaar@lists.canonical.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).