|
| 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, Submodule > | getTree (const CanonPath &path) |
|
Blob | getBlob (const CanonPath &path, bool expectSymlink) |
|
|
ref< GitRepoImpl > | repo |
|
Object | root |
|
std::optional< lfs::Fetch > | lfsFetch = std::nullopt |
|
std::unordered_map< CanonPath, TreeEntry > | lookupCache |
|
Raw git tree input accessor.
◆ 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/buildozer/aports/community/nix/src/nix-2.28.3/src/libfetchers/git-utils.cc