MCPcopy Create free account
hub / github.com/brimdata/super / printObjects

Function printObjects

db/branch.go:207–214  ·  view source on GitHub ↗
(b *strings.Builder, objects []*data.Object, maxMessageObjects int)

Source from the content-addressed store, hash-verified

205}
206
207func printObjects(b *strings.Builder, objects []*data.Object, maxMessageObjects int) {
208 for k, o := range objects {
209 fmt.Fprintf(b, " %s\n", o)
210 if k >= maxMessageObjects {
211 b.WriteString(" ...\n")
212 }
213 }
214}
215
216func (b *Branch) Revert(ctx context.Context, commit ksuid.KSUID, author, message string) (ksuid.KSUID, error) {
217 return b.commit(ctx, func(parent *branches.Config, retries int) (*commits.Object, error) {

Callers 3

DeleteMethod · 0.85
deleteWhereMessageFunction · 0.85
CommitCompactMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected