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

Method MarkWantWrite

plumbing/format/packfile/object_pack.go:71–73  ·  view source on GitHub ↗

MarkWantWrite marks this ObjectToPack as WantWrite to avoid delta chain loops

()

Source from the content-addressed store, hash-verified

69// MarkWantWrite marks this ObjectToPack as WantWrite
70// to avoid delta chain loops
71func (o *ObjectToPack) MarkWantWrite() {
72 o.Offset = 1
73}
74
75// WantWrite checks if this ObjectToPack was marked as WantWrite before
76func (o *ObjectToPack) WantWrite() bool {

Callers 1

entryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected