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.cpp | |
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.cpp')
-rw-r--r-- | src/dir.cpp | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/dir.cpp b/src/dir.cpp index 78ff83a..9e524aa 100644 --- a/src/dir.cpp +++ b/src/dir.cpp @@ -1,12 +1,9 @@ +#include "dir.h" +#include "repo.h" #include <Ice/ObjectAdapter.h> #include <sys/stat.h> -#include "repo.h" -#include "dir.h" -GitFS::Directory::Directory(Repo * const r, std::string && p) : - repo(r), - path(std::move(p)), - subTreeCacheRootId({}) +GitFS::Directory::Directory(Repo * const r, std::string && p) : repo(r), path(std::move(p)), subTreeCacheRootId({}) { getSubtree(); } @@ -32,14 +29,13 @@ GitFS::Directory::getSubtree() const } void -GitFS::Directory::close(const ::Ice::Current& current) +GitFS::Directory::close(const ::Ice::Current & current) { current.adapter->remove(current.id); } - NetFS::NameList -GitFS::Directory::readdir(const ::Ice::Current&) +GitFS::Directory::readdir(const ::Ice::Current &) { const auto subTree = getSubtree(); NetFS::NameList list; @@ -50,9 +46,8 @@ GitFS::Directory::readdir(const ::Ice::Current&) return list; } - NetFS::DirectoryContents -GitFS::Directory::listdir(const ::Ice::Current&) +GitFS::Directory::listdir(const ::Ice::Current &) { const auto subTree = getSubtree(); NetFS::DirectoryContents list; @@ -70,5 +65,3 @@ GitFS::Directory::listdir(const ::Ice::Current&) } return list; } - - |