From fc08c2fe42b963481607f421d0ec76ec9823eec7 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 29 Jul 2019 20:58:58 +0100 Subject: Periodically check for a new root tree --- src/repo.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/repo.h') diff --git a/src/repo.h b/src/repo.h index adeac94..b5b183c 100644 --- a/src/repo.h +++ b/src/repo.h @@ -33,11 +33,15 @@ namespace GitFS { void utimens(ReqEnv env, ::std::string path, long long int atime, long long int atimens, long long int mtime, long long int mtimens, const ::Ice::Current& current) override; private: + void update(); + friend class Directory; friend class Blob; const Git::RepositoryPtr repo; const std::string commitish; + Git::RefPtr ref; bool isBranch; + std::time_t resolvedAt; Git::CommitPtr commit; Git::TreePtr tree; const std::string gid, uid; -- cgit v1.2.3