Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::GitFileSystemObjectSink Struct Referenceabstract

#include <git-utils.hh>

Inheritance diagram for nix::GitFileSystemObjectSink:
nix::ExtendedFileSystemObjectSink nix::FileSystemObjectSink nix::GitFileSystemObjectSinkImpl

Public Member Functions

virtual Hash flush ()=0
 
- Public Member Functions inherited from nix::ExtendedFileSystemObjectSink
virtual void createHardlink (const CanonPath &path, const CanonPath &target)=0
 
- Public Member Functions inherited from nix::FileSystemObjectSink
virtual void createDirectory (const CanonPath &path)=0
 
virtual void createRegularFile (const CanonPath &path, std::function< void(CreateRegularFileSink &)>)=0
 
virtual void createSymlink (const CanonPath &path, const std::string &target)=0
 

Detailed Description

A sink that writes into a Git repository. Note that nothing may be written until flush() is called.

Member Function Documentation

◆ flush()

virtual Hash nix::GitFileSystemObjectSink::flush ( )
pure virtual

Flush builder and return a final Git hash.

Implemented in nix::GitFileSystemObjectSinkImpl.


The documentation for this struct was generated from the following file: