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

27 lines
476 B
C++
Raw Normal View History

2020-02-01 17:41:54 +02:00
#pragma once
2020-02-02 13:29:53 +02:00
#include "path.hh"
namespace nix { class Store; }
namespace nix::fetchers {
2020-02-01 17:41:54 +02:00
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-02 13:29:53 +02:00
StorePath computeStorePath(Store & store) const;
2020-02-01 17:41:54 +02:00
};
}