(sctx *super.Context, meta string)
| 95 | } |
| 96 | |
| 97 | func loadMeta(sctx *super.Context, meta string) (super.Value, error) { |
| 98 | if meta == "" { |
| 99 | return super.Null, nil |
| 100 | } |
| 101 | val, err := sup.ParseValue(super.NewContext(), meta) |
| 102 | if err != nil { |
| 103 | return sctx.Missing(), fmt.Errorf("%w %q: %s", ErrInvalidCommitMeta, meta, err) |
| 104 | } |
| 105 | return val, nil |
| 106 | } |
| 107 | |
| 108 | func (b *Branch) Delete(ctx context.Context, ids []ksuid.KSUID, author, message string) (ksuid.KSUID, error) { |
| 109 | return b.commit(ctx, func(parent *branches.Config, retries int) (*commits.Object, error) { |
no test coverage detected