16enum struct ObjectType {
23using RawMode = uint32_t;
25enum struct Mode : RawMode {
32std::optional<Mode> decodeMode(RawMode m);
42 bool operator ==(
const TreeEntry &)
const =
default;
43 auto operator <=>(
const TreeEntry &)
const =
default;
52using Tree = std::map<std::string, TreeEntry>;
75ObjectType parseObjectType(
87 Regular =
static_cast<RawMode
>(Mode::Regular),
88 Executable =
static_cast<RawMode
>(Mode::Executable),
89 Symlink =
static_cast<RawMode
>(Mode::Symlink),
101 std::function<SinkHook> hook,
115 std::function<SinkHook> hook,
142 uint64_t size,
Sink & sink,
149 const Tree & entries,
Sink & sink,
166 std::function<DumpHook> hook,
206 std::optional<std::string> reference;
212std::optional<LsRemoteRefLine> parseLsRemoteLine(std::string_view
line);
Definition canon-path.hh:41
std::function< bool(const Path &path)> PathFilter
Definition file-system.hh:365
void(const CanonPath &name, TreeEntry entry) SinkHook
Definition git.hh:68
SourcePath(Hash) RestoreHook
Definition git.hh:129
BlobMode
Definition git.hh:86
TreeEntry(const SourcePath &path) DumpHook
Definition git.hh:161
uint32_t line
Definition lexer.l:6526
ValueType type
Definition lexer.l:7098
const std::string_view & name
Definition lexer.l:1709
Definition serialise.hh:20
Type
Definition source-accessor.hh:82
Definition source-path.hh:22
Definition serialise.hh:68