Nix 2.29.1
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::GitSourceAccessor Struct Reference
Inheritance diagram for nix::GitSourceAccessor:

Classes

struct  Submodule

Public Member Functions

 GitSourceAccessor (ref< GitRepoImpl > repo_, const Hash &rev, bool smudgeLfs)
std::string readBlob (const CanonPath &path, bool symlink)
std::string readFile (const CanonPath &path) override
bool pathExists (const CanonPath &path) override
std::optional< Stat > maybeLstat (const CanonPath &path) override
DirEntries readDirectory (const CanonPath &path) override
std::string readLink (const CanonPath &path) override
std::optional< Hash > getSubmoduleRev (const CanonPath &path)
git_tree_entry * lookup (const CanonPath &path)
std::optional< Tree > lookupTree (const CanonPath &path)
git_tree_entry * need (const CanonPath &path)
std::variant< Tree, SubmodulegetTree (const CanonPath &path)
Blob getBlob (const CanonPath &path, bool expectSymlink)

Public Attributes

ref< GitRepoImplrepo
Object root
std::optional< lfs::Fetch > lfsFetch = std::nullopt
std::unordered_map< CanonPath, TreeEntry > lookupCache

Detailed Description

Raw git tree input accessor.

Member Function Documentation

◆ getSubmoduleRev()

std::optional< Hash > nix::GitSourceAccessor::getSubmoduleRev ( const CanonPath & path)
inline

If path exists and is a submodule, return its revision. Otherwise return nothing.


The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/nix-2.29.1-build/nix-2.29.1/src/libfetchers/git-utils.cc