summaryrefslogtreecommitdiff
path: root/src/repo.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-29 20:58:58 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-29 20:58:58 +0100
commitfc08c2fe42b963481607f421d0ec76ec9823eec7 (patch)
tree1dd59ffdd46523438a9af4727f5830411731b0b7 /src/repo.h
parentFix constness of repo pointers (diff)
downloadnetfs-gitfs-fc08c2fe42b963481607f421d0ec76ec9823eec7.tar.bz2
netfs-gitfs-fc08c2fe42b963481607f421d0ec76ec9823eec7.tar.xz
netfs-gitfs-fc08c2fe42b963481607f421d0ec76ec9823eec7.zip
Periodically check for a new root tree
Diffstat (limited to 'src/repo.h')
-rw-r--r--src/repo.h4
1 files changed, 4 insertions, 0 deletions
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;