diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-21 13:54:41 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-21 13:54:41 +0100 |
commit | 67684b3a9a7205cef15f5978b5adc4df632f5af5 (patch) | |
tree | 630a28d313047bf6440b0c349047c6c8de0cb298 /src/blob.h | |
parent | Add a test symlink (diff) | |
download | netfs-gitfs-67684b3a9a7205cef15f5978b5adc4df632f5af5.tar.bz2 netfs-gitfs-67684b3a9a7205cef15f5978b5adc4df632f5af5.tar.xz netfs-gitfs-67684b3a9a7205cef15f5978b5adc4df632f5af5.zip |
Basically all the core functionality
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; |