mirror of
https://github.com/NixOS/nix
synced 2025-07-06 05:01:48 +02:00
parent
8451298b35
commit
b9d64f9318
4 changed files with 89 additions and 16 deletions
|
@ -5,9 +5,18 @@ namespace nix {
|
|||
struct TreeInfo
|
||||
{
|
||||
Hash narHash;
|
||||
std::optional<Hash> rev;
|
||||
std::optional<Hash> rev; // FIXME: remove
|
||||
std::optional<uint64_t> revCount;
|
||||
std::optional<time_t> lastModified;
|
||||
|
||||
bool operator ==(const TreeInfo & other) const
|
||||
{
|
||||
return
|
||||
narHash == other.narHash
|
||||
&& rev == other.rev
|
||||
&& revCount == other.revCount
|
||||
&& lastModified == other.lastModified;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue