On Wed, 21 Dec 2011 03:37:53 +0000, Simon Stoakley <[email protected]> wrote: > Hi All, > I'm uploading a pkg for an mpris2 plugin for Kupfer. I don't want to > clone the whole git repo (seems wasteful and I think half the code > there is dead) and the only part that I'm interested in is the mpris2 > folder. The only way I've found of checking out part of a repo in is > to use the sparse checkout trick. > The question I have is whether or not it's OK to use this in a > PKGBUILD or not, what say ye wise men?! > PKGBUILD below for reference (depends on pkgs I haven't uploaded > yet if you try building) > > Thanks > Simon
Hi, I don't think git allows you to clone just part of a repo (unlike SVN), but what I usually do is to reduce the clone depth: git clone git://url.com/repo --depth 1 The --depth switch will make git to clone only the most recent history, because when compiling, you are hardly interested in previous commits. It usually makes the clone operation significantly faster and saves a lot of bandwidth. Cheers, Dan -- ---- Dan Vrátil [email protected] Tel.: +420 732 326 870 Jabber: [email protected]
