From a902f6849d938a51fa34dc292f5c81d26c4b6c36 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 28 Mar 2026 09:53:29 +0000 Subject: repository, README: Fix fetcher/resolver naming --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 10e44914..3e4f7180 100644 --- a/README.md +++ b/README.md @@ -23,13 +23,13 @@ Furgit is a low-level Git library in Go. If you are working with a normal on-disk repository, start with `repository.Open(...)`. It opens the repository and wires together the refs -storage, object storage, and resolver. Note that it requires either a +storage, object storage, and fetcher. Note that it requires either a bare repository or a `.git` directory. Then, * `repo.Refs()` is for branch names, tags, `HEAD`, and ref updates. * Use it when you are starting from names rather than object IDs. * A common pattern is to resolve a ref first, then pass the resulting object - ID to the resolver. + ID to the fetcher. * `repo.Fetcher()` is the main object-facing API for most callers. * Use it when you want commits, trees, blobs, or tags as typed values. @@ -43,7 +43,7 @@ bare repository or a `.git` directory. Then, * Use it when you need to read object headers, read raw object contents, stream object data, or otherwise look up objects directly by ID. * Most callers who want to work with Git objects as commits, trees, blobs, or - tags should prefer the resolver instead. + tags should prefer the fetcher instead. * However, checking an object ID's size and type are somewhat common operations that should be done here. -- cgit v1.3.1-10-gc9f91