package filesystem import ( "github.com/go-git/go-git/v5/plumbing" ) type deltaObject struct { plumbing.EncodedObject base plumbing.Hash hash plumbing.Hash size int64 } func newDeltaObject( obj plumbing.EncodedObject, hash plumbing.Hash, base plumbing.Hash, size int64) plumbing.DeltaObject { return &deltaObject{ EncodedObject: obj, hash: hash, base: base, size: size, } } func (o *deltaObject) BaseHash() plumbing.Hash { return o.base } func (o *deltaObject) ActualSize() int64 { return o.size } func (o *deltaObject) ActualHash() plumbing.Hash { return o.hash }