[cmake-developers] git equivalent to 'svn cat'

James Bigler jamesbigler at gmail.com
Tue Sep 14 13:22:52 EDT 2010


I'm trying to produce the equivalent command of 'svn cat' in git.  According
to some documentation I'm supposed to be able to use git show:

http://git.or.cz/course/svn.html

You can see the contents of a file, the listing of a directory or a commit
with:
git show *rev*:*path/to/file*           svn cat *url*
git show *rev*:*path/to/directory*   svn list *url*
git show *rev                           *svn log -r*rev* *url*
                                            svn diff -c*rev* *url*
**
I don't seem to be able to produce the correct rev:path/to/directory
necessary to make it work, however.

$ git show HEAD:git://cmake.org/cmake.git/Modules
fatal: Not a git repository (or any of the parent directories): .git

Thanks,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20100914/09055f14/attachment.html>


More information about the cmake-developers mailing list