summaryrefslogtreecommitdiff
path: root/src/repo.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-28 13:21:33 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-28 13:21:33 +0100
commit801b1a160558ed8b862e683c7aaf5092b0c1adb2 (patch)
treecdfd96d7f5164195e722f2c0d6df70c1613fa357 /src/repo.h
parentReplace hard-coded test values with properties (diff)
downloadnetfs-gitfs-801b1a160558ed8b862e683c7aaf5092b0c1adb2.tar.bz2
netfs-gitfs-801b1a160558ed8b862e683c7aaf5092b0c1adb2.tar.xz
netfs-gitfs-801b1a160558ed8b862e683c7aaf5092b0c1adb2.zip
Support working tree based on a commit, tag or branch
Diffstat (limited to 'src/repo.h')
-rw-r--r--src/repo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/repo.h b/src/repo.h
index 18b1057..adeac94 100644
--- a/src/repo.h
+++ b/src/repo.h
@@ -35,7 +35,9 @@ namespace GitFS {
private:
friend class Directory;
friend class Blob;
- Git::RepositoryPtr repo;
+ const Git::RepositoryPtr repo;
+ const std::string commitish;
+ bool isBranch;
Git::CommitPtr commit;
Git::TreePtr tree;
const std::string gid, uid;