From 67684b3a9a7205cef15f5978b5adc4df632f5af5 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 21 Jul 2019 13:54:41 +0100 Subject: Basically all the core functionality --- src/dir.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/dir.h') diff --git a/src/dir.h b/src/dir.h index 74afde3..7174976 100644 --- a/src/dir.h +++ b/src/dir.h @@ -6,17 +6,22 @@ namespace GitFS { using namespace NetFS; + class Repo; class Directory : public DirectoryV2 { public: - Directory(const GitFS::Git::TreePtr & r, const std::string &); + Directory(const Repo * r, const std::string &); void close(const ::Ice::Current& current) override; NameList readdir(const ::Ice::Current& current) override; DirectoryContents listdir(const ::Ice::Current& current) override; private: - Git::TreePtr tree; + Git::TreePtr getSubtree() const; + const Repo * repo; const std::string path; + + mutable Git::TreePtr subTreeCache; + mutable git_oid subTreeCacheRootId; }; } -- cgit v1.2.3