download: git: introduce cache feature
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>
Mon, 2 Apr 2018 14:58:02 +0000 (16:58 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 2 Apr 2018 15:52:53 +0000 (17:52 +0200)
commit6d938bcb524987f3e4a56fc311692ba9127417d9
treed25218053fd3e0ccfc0333995f9e3b3be8fcc53f
parente80d1d0af448c33f93a9a913cd0a34c406a29cf4
download: git: introduce cache feature

Now we keep the git clone that we download and generates our tarball
from there.
The main goal here is that if you change the version of a package (say
Linux), instead of cloning all over again, you will simply 'git fetch'
from the repo the missing objects, then generates the tarball again.

This should speed the 'source' part of the build significantly.

The drawback is that the DL_DIR will grow much larger; but time is more
important than disk space nowadays.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/download/git