summaryrefslogtreecommitdiff
path: root/src/repo.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2025-09-19 12:08:50 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2025-09-19 12:08:50 +0100
commitf4bb8f499ffb8c22512f3e5e703d7dc26215dd39 (patch)
treed1a17b7f25536dbb55d1235a6a390060aec838b6 /src/repo.h
parentSingle definition of constructing Attr from git things (diff)
downloadnetfs-gitfs-f4bb8f499ffb8c22512f3e5e703d7dc26215dd39.tar.bz2
netfs-gitfs-f4bb8f499ffb8c22512f3e5e703d7dc26215dd39.tar.xz
netfs-gitfs-f4bb8f499ffb8c22512f3e5e703d7dc26215dd39.zip
Add . and .. to listdir result set
Uses default directory attributes.
Diffstat (limited to 'src/repo.h')
-rw-r--r--src/repo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/repo.h b/src/repo.h
index facf42e..ad004c4 100644
--- a/src/repo.h
+++ b/src/repo.h
@@ -32,6 +32,7 @@ namespace GitFS {
Attr getattr(ReqEnv env, ::std::string path, const ::Ice::Current & ice) override;
[[nodiscard]] Attr getattr(const git_tree_entry *) const;
[[nodiscard]] Attr getattr(const git_tree_entry *, const git_blob *) const;
+ [[nodiscard]] Attr getdirattr() const;
::std::string readlink(ReqEnv env, ::std::string path, const ::Ice::Current & ice) override;
FilePrxPtr open(ReqEnv env, ::std::string path, int flags, const ::Ice::Current & ice) override;
FilePrxPtr create(ReqEnv env, ::std::string path, int flags, int mode, const ::Ice::Current & ice) override;