mirror of
https://github.com/NixOS/nix
synced 2024-09-22 11:50:24 -04:00
21 lines
360 B
C++
21 lines
360 B
C++
#pragma once
|
|
|
|
namespace nix {
|
|
|
|
struct TreeInfo
|
|
{
|
|
Hash narHash;
|
|
std::optional<uint64_t> revCount;
|
|
std::optional<time_t> lastModified;
|
|
|
|
bool operator ==(const TreeInfo & other) const
|
|
{
|
|
return
|
|
narHash == other.narHash
|
|
&& revCount == other.revCount
|
|
&& lastModified == other.lastModified;
|
|
}
|
|
};
|
|
|
|
}
|