(parent ksuid.KSUID, retries int, author, message string, meta super.Value)
| 104 | } |
| 105 | |
| 106 | func (p *Patch) NewCommitObject(parent ksuid.KSUID, retries int, author, message string, meta super.Value) *Object { |
| 107 | o := NewObject(parent, author, message, meta, retries) |
| 108 | for _, id := range p.deletedObjects { |
| 109 | o.appendDelete(id) |
| 110 | } |
| 111 | for _, s := range p.diff.objects { |
| 112 | o.appendAdd(s) |
| 113 | } |
| 114 | for _, id := range p.deletedVectors { |
| 115 | o.appendDeleteVector(id) |
| 116 | } |
| 117 | for id := range p.diff.vectors { |
| 118 | o.appendAddVector(id) |
| 119 | } |
| 120 | return o |
| 121 | } |
| 122 | |
| 123 | func (p *Patch) Revert(tip *Snapshot, commit, parent ksuid.KSUID, retries int, author, message string) (*Object, error) { |
| 124 | object := NewObject(parent, author, message, super.Null, retries) |
no test coverage detected