diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-08-22 15:26:11 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-08-22 15:26:11 +0100 |
commit | f759884235b4594c4f960ea0c587697eef717665 (patch) | |
tree | 92f3b95e99fac6688a6d9cec88b6553cb77f0c60 /src/dir.h | |
parent | Update to new NetFS interface (diff) | |
download | netfs-gitfs-f759884235b4594c4f960ea0c587697eef717665.tar.bz2 netfs-gitfs-f759884235b4594c4f960ea0c587697eef717665.tar.xz netfs-gitfs-f759884235b4594c4f960ea0c587697eef717665.zip |
Clang-format
Diffstat (limited to 'src/dir.h')
-rw-r--r-- | src/dir.h | 25 |
1 files changed, 12 insertions, 13 deletions
@@ -1,29 +1,28 @@ #ifndef GITFS_DIRECTORY_H #define GITFS_DIRECTORY_H -#include <directory.h> #include "git.h" +#include <directory.h> namespace GitFS { using namespace NetFS; class Repo; class Directory : public NetFS::Directory { - public: - Directory(Repo * const r, std::string &&); + public: + Directory(Repo * const r, std::string &&); - void close(const ::Ice::Current& current) override; - NameList readdir(const ::Ice::Current& current) override; - DirectoryContents listdir(const ::Ice::Current& current) override; + void close(const ::Ice::Current & current) override; + NameList readdir(const ::Ice::Current & current) override; + DirectoryContents listdir(const ::Ice::Current & current) override; - private: - Git::TreePtr getSubtree() const; - Repo * const repo; - const std::string path; + private: + Git::TreePtr getSubtree() const; + Repo * const repo; + const std::string path; - mutable Git::TreePtr subTreeCache; - mutable git_oid subTreeCacheRootId; + mutable Git::TreePtr subTreeCache; + mutable git_oid subTreeCacheRootId; }; } #endif - |