git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Getting a file revision
@ 2007-08-19  0:42 Bahadir Balban
  2007-08-19  0:52 ` Junio C Hamano
  2007-08-19  0:52 ` Getting a file revision J. Bruce Fields
  0 siblings, 2 replies; 11+ messages in thread
From: Bahadir Balban @ 2007-08-19  0:42 UTC (permalink / raw)
  To: git

Hi,

This might sound like a novice question but anyway: I sometimes have a
need to quickly recover an old revision of a file just to check
something or copy some code from it. I would imagine having a command
like:

git-getrev <filename> <commit> or something, and the file would appear
in its path, or the git root directory as <filename>.<commit>

Is there an existing way to achieve a similar result? I can certainly
checkout a branch, revert to that commit I want, copy the file, and
come back to HEAD, but its not as quick.

Thanks,
Bahadir

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

end of thread, other threads:[~2007-08-21 18:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-19  0:42 Getting a file revision Bahadir Balban
2007-08-19  0:52 ` Junio C Hamano
2007-08-20 11:38   ` Jerome Lovy
2007-08-21 12:49     ` [PATCH] Document the -p option for git-show Miklos Vajna
2007-08-21 13:09       ` Johannes Sixt
2007-08-21 14:29         ` VMiklos
2007-08-21 15:02         ` David Kastrup
2007-08-21 17:01       ` Robin Rosenberg
2007-08-21 17:33         ` Junio C Hamano
2007-08-21 18:50           ` Robin Rosenberg
2007-08-19  0:52 ` Getting a file revision J. Bruce Fields

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