mirror of
https://github.com/NixOS/nix.git
synced 2025-12-16 05:51:05 +01:00
Merge branch 'path-info' into ca-drv-exotic
This commit is contained in:
commit
7c82213813
97 changed files with 1868 additions and 1001 deletions
|
|
@ -208,6 +208,16 @@ Hash getContentAddressHash(const ContentAddress & ca)
|
|||
}, ca);
|
||||
}
|
||||
|
||||
bool StoreReferences::empty() const
|
||||
{
|
||||
return !self && others.empty();
|
||||
}
|
||||
|
||||
size_t StoreReferences::size() const
|
||||
{
|
||||
return (self ? 1 : 0) + others.size();
|
||||
}
|
||||
|
||||
ContentAddressWithReferences caWithoutRefs(const ContentAddress & ca) {
|
||||
return std::visit(overloaded {
|
||||
[&](const TextHash & h) -> ContentAddressWithReferences {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue