(b *strings.Builder, objects []*data.Object, maxMessageObjects int)
| 205 | } |
| 206 | |
| 207 | func 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 | |
| 216 | func (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) { |
no outgoing calls
no test coverage detected