aboutsummaryrefslogtreecommitdiff
path: root/object/fetch/treefs.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/fetch/treefs.go')
-rw-r--r--object/fetch/treefs.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/object/fetch/treefs.go b/object/fetch/treefs.go
index 06b6ad25..39ea7ad5 100644
--- a/object/fetch/treefs.go
+++ b/object/fetch/treefs.go
@@ -7,16 +7,16 @@ import (
"codeberg.org/lindenii/furgit/object/tree"
)
-// TreeFS exposes one Git tree as an fs.FS.
+// TreeFS exposes one Git tree as an fs.FS view backed by a Fetcher.
//
// TreeFS interprets names using io/fs path rules. Those rules do not match raw
// Git tree entry naming exactly: names are UTF-8, slash-separated, and must be
// valid fs.FS paths. Tree entries that cannot be represented under those rules
// are not addressable through this API.
//
-// TreeFS does not take ownership of its Fetcher.
+// Labels: MT-Safe.
type TreeFS struct {
- resolver *Fetcher
+ fetcher *Fetcher
rootTree objectid.ObjectID
rootEntry *tree.TreeEntry
}