summaryrefslogtreecommitdiff
path: root/src/blob.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/blob.h')
-rw-r--r--src/blob.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/blob.h b/src/blob.h
index 0a2a77d..64f41ac 100644
--- a/src/blob.h
+++ b/src/blob.h
@@ -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;