1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-22 11:50:24 -04:00
nix/src/libstore/fetchers/tree-info.hh

21 lines
360 B
C++
Raw Normal View History

2020-02-01 10:41:54 -05: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 10:41:54 -05:00
};
}