Also, fetchGit now runs in O(1) memory since we pipe the output of 'git archive' directly into unpackTarball() (rather than first reading it all into memory).
11 lines
215 B
C++
11 lines
215 B
C++
#include "serialise.hh"
|
|
|
|
namespace nix {
|
|
|
|
void unpackTarfile(Source & source, const Path & destDir);
|
|
|
|
void unpackTarfile(const Path & tarFile, const Path & destDir,
|
|
std::optional<std::string> baseName = {});
|
|
|
|
}
|