From 080ae2e8e02a5fd7d708e50a5c6458ef2a8e3d05 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 16 Sep 2025 18:36:23 +0100 Subject: Single definition of constructing Attr from git things Adds getattr helpers to handle logic for setting members from entry and blob if available/appropriate, commit, gid, and uid. --- src/repo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/repo.h') diff --git a/src/repo.h b/src/repo.h index 0087a3f..facf42e 100644 --- a/src/repo.h +++ b/src/repo.h @@ -30,6 +30,8 @@ namespace GitFS { VFS statfs(ReqEnv env, ::std::string path, const ::Ice::Current & ice) override; int access(ReqEnv env, ::std::string path, int mode, const ::Ice::Current & ice) override; 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; ::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; -- cgit v1.2.3