nix-super/src/libstore/fetchers/tree-info.hh
2020-02-02 12:29:53 +01:00

26 lines
476 B
C++

#pragma once
#include "path.hh"
namespace nix { class Store; }
namespace nix::fetchers {
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;
}
StorePath computeStorePath(Store & store) const;
};
}