MCPcopy Create free account
hub / github.com/cloudflare/artifact-fs / rootNode

Function rootNode

internal/gitstore/gitstore.go:1239–1248  ·  view source on GitHub ↗
(repoID model.RepoID)

Source from the content-addressed store, hash-verified

1237 SizeState: "unknown",
1238 SizeBytes: 0,
1239 }, typ, true
1240}
1241
1242func (s *Store) batchResolveSizes(ctx context.Context, repo model.RepoConfig, nodes []model.BaseNode, oids []string, index map[string][]int) error {
1243 if len(oids) == 0 {
1244 return nil
1245 }
1246 cmd := exec.CommandContext(ctx, "git", "cat-file", "--batch-check", "--buffer")
1247 configureCancelableCommand(cmd)
1248 // GIT_NO_LAZY_FETCH prevents batch-check from fetching blob metadata from
1249 // the promisor remote on blobless clones. Without it, every blob OID
1250 // triggers a network round-trip, turning a millisecond operation into
1251 // minutes. Blobs reported as "missing" keep SizeState="unknown" and get

Callers 1

BuildTreeIndexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected