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

Brad King brad.king at kitware.com
Tue Sep 14 14:37:26 EDT 2010


On 09/14/2010 02:33 PM, James Bigler wrote:
> Ah.  This is the point that I didn't know.  OK, so if I want a copy of a
> single file or sub-directory, I have to clone the entire repository just
> to get it?

Correct.  You can reduce the traffic a bit using the --depth
option to clone but it is rarely worth doing so.

> Is there no possible way to get a single file or sub-directory?

Not remotely through Git protocols.  You can see them through
web viewers though:

http://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/FindCUDA.cmake;hb=HEAD

-Brad



More information about the cmake-developers mailing list