git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Simple UI question...
@ 2007-01-07 11:02 Chris Lee
  2007-01-07 11:06 ` Josef "Jeff" Sipek
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Chris Lee @ 2007-01-07 11:02 UTC (permalink / raw)
  To: Git Mailing List

Hey guys,

So I'm trying to figure out the best way to pull out a checkout of the
entire tree as of a given revision ID. I have a whole bunch of
revision IDs, and I'd like to know what the git equivalent of (say)
the following is:

svn co -r280600 file:///path/to/svn/repo

For the sake of argument, let's say that r280600 imported as
07058310db903317faa300b93004a5a2e0fc2dcc into my git tree.

How do I get a pristine checkout in my working copy of the entire tree
as the repository saw it at 07058310db903317faa300b93004a5a2e0fc2dcc?

Eric Anholt suggested 'git checkout -b temporary-branch-name
$sha1sum'; davej suggested 'git-read-tree $sha1sum &&
git-checkout-index -a -f' but for some reason, neither of these
commands seems to do exactly as I expect. davej's method seems to work
for some revision IDs, but not for others, and the other method seems
to work just about as well. (The problem I have seen is that, for some
revisions, the only files I get in the working copy are the files that
were changed in that commit; the rest of the files in the tree do not
get checked out.)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-01-07 11:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-07 11:02 Simple UI question Chris Lee
2007-01-07 11:06 ` Josef "Jeff" Sipek
2007-01-07 11:13 ` Shawn O. Pearce
2007-01-07 11:21   ` Chris Lee
2007-01-07 11:29     ` Shawn O. Pearce
2007-01-07 11:38       ` Chris Lee
2007-01-07 11:40         ` Junio C Hamano
2007-01-07 11:50           ` Chris Lee
2007-01-07 11:30 ` Junio C Hamano

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).