nix-super/src/libstore/fetchers/tree-info.hh

21 lines
360 B
C++
Raw Normal View History

2020-02-01 17:41:54 +02:00
#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;
}
2020-02-01 17:41:54 +02:00
};
}