[openib-general] git: cloning partial tree

Michael S. Tsirkin mst at mellanox.co.il
Sat Nov 4 22:43:41 PST 2006


Quoting r. Eitan Zahavi <eitan at mellanox.co.il>:
> Subject: git: cloning partial tree
> 
> A newbie question:
> What is the easiest/simplest way for me to clone only the infiniband 
> part of the kernel tree?
> 
> Thanks
> 
> Eitan

You can't do that with git.
But you can check out just the infiniband part of the tree:
git checkout master `git-ls-tree -r --name-only master \
                   include/rdma include/scsi/srp.h drivers/infiniband \
                   Documentation/infiniband ofed_scripts kernel_patches`
echo 'ref: refs/heads/master' > .git/HEAD



-- 
MST




More information about the general mailing list