BackToOriginal converts that ObjectToPack to a non-deltified object if it was one
()
| 53 | |
| 54 | // BackToOriginal converts that ObjectToPack to a non-deltified object if it was one |
| 55 | func (o *ObjectToPack) BackToOriginal() { |
| 56 | if o.IsDelta() && o.Original != nil { |
| 57 | o.Object = o.Original |
| 58 | o.Base = nil |
| 59 | o.Depth = 0 |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | // IsWritten returns if that ObjectToPack was |
| 64 | // already written into the packfile or not |