mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02:00
Split GitRepoImpl::importTarball
There is now a separation of: 1. A `FileSystemObjectSink` for writing to git repos 2. Adapting libarchive to use that parse sink. The prepares a proper separation of concerns.
This commit is contained in:
parent
54354eaecf
commit
ba6a5f06ee
3 changed files with 249 additions and 156 deletions
|
@ -26,6 +26,8 @@ struct CreateRegularFileSink : Sink
|
|||
|
||||
struct FileSystemObjectSink
|
||||
{
|
||||
virtual ~FileSystemObjectSink() = default;
|
||||
|
||||
virtual void createDirectory(const Path & path) = 0;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue