diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-09-16 18:36:23 +0100 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-09-16 18:36:23 +0100 |
| commit | 080ae2e8e02a5fd7d708e50a5c6458ef2a8e3d05 (patch) | |
| tree | 402a4c492faae8ea42e46eedbbc3ca057171bafc /src/blob.cpp | |
| parent | Include . and .. in readdir results (diff) | |
| download | netfs-gitfs-080ae2e8e02a5fd7d708e50a5c6458ef2a8e3d05.tar.bz2 netfs-gitfs-080ae2e8e02a5fd7d708e50a5c6458ef2a8e3d05.tar.xz netfs-gitfs-080ae2e8e02a5fd7d708e50a5c6458ef2a8e3d05.zip | |
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.
Diffstat (limited to 'src/blob.cpp')
| -rw-r--r-- | src/blob.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/blob.cpp b/src/blob.cpp index 285cd0b..bc1f485 100644 --- a/src/blob.cpp +++ b/src/blob.cpp @@ -39,11 +39,7 @@ GitFS::Blob::close(const ::Ice::Current & ice) NetFS::Attr GitFS::Blob::fgetattr(const ::Ice::Current &) { - NetFS::Attr attr; - attr << *blob << *entry << *repo->commit; - attr.gid = repo->gid; - attr.uid = repo->uid; - return attr; + return repo->getattr(entry.get(), blob.get()); } NetFS::Buffer |
