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
_______________________________________________
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to