diff options
Diffstat (limited to 'src/blob.h')
-rw-r--r-- | src/blob.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6,9 +6,10 @@ namespace GitFS { using namespace NetFS; + class Repo; class Blob : public File { public: - Blob(const GitFS::Git::RepositoryPtr & r, const Git::TreeEntryPtr &); + Blob(const Repo * r, const std::string &); void close(const ::Ice::Current& current) override; Attr fgetattr(ReqEnv env, const ::Ice::Current& current) override; @@ -17,6 +18,10 @@ namespace GitFS { void write(long long int offset, long long int size, Buffer data, const ::Ice::Current& current) override; private: + Git::TreeEntryPtr getTreeEntry(const std::string & path) const; + Git::BlobPtr getBlob() const; + const Repo * repo; + Git::TreeEntryPtr entry; Git::BlobPtr blob; const decltype(git_blob_rawsize({})) blobSize; const char * const blobContent; |