MCPcopy
hub / github.com/go-git/go-git / BackToOriginal

Method BackToOriginal

plumbing/format/packfile/object_pack.go:55–61  ·  view source on GitHub ↗

BackToOriginal converts that ObjectToPack to a non-deltified object if it was one

()

Source from the content-addressed store, hash-verified

53
54// BackToOriginal converts that ObjectToPack to a non-deltified object if it was one
55func (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

Callers 1

entryMethod · 0.80

Calls 1

IsDeltaMethod · 0.95

Tested by

no test coverage detected