···3131 Files []*RepoTree_TreeEntry `json:"files" cborgen:"files"`
3232 // parent: The parent path in the tree
3333 Parent *string `json:"parent,omitempty" cborgen:"parent,omitempty"`
3434+ // readme: Readme for this file tree
3535+ Readme *RepoTree_Readme `json:"readme,omitempty" cborgen:"readme,omitempty"`
3436 // ref: The git reference used
3537 Ref string `json:"ref" cborgen:"ref"`
3838+}
3939+4040+// RepoTree_Readme is a "readme" in the sh.tangled.repo.tree schema.
4141+type RepoTree_Readme struct {
4242+ // contents: Contents of the readme file
4343+ Contents string `json:"contents" cborgen:"contents"`
4444+ // filename: Name of the readme file
4545+ Filename string `json:"filename" cborgen:"filename"`
3646}
37473848// RepoTree_TreeEntry is a "treeEntry" in the sh.tangled.repo.tree schema.
···484484 if xrpcResp.Dotdot != nil {
485485 result.DotDot = *xrpcResp.Dotdot
486486 }
487487+ if xrpcResp.Readme != nil {
488488+ result.ReadmeFileName = xrpcResp.Readme.Filename
489489+ result.Readme = xrpcResp.Readme.Contents
490490+ }
487491488492 // redirects tree paths trying to access a blob; in this case the result.Files is unpopulated,
489493 // so we can safely redirect to the "parent" (which is the same file).