MCPcopy Create free account
hub / github.com/libgit2/git2go / NumDeltas

Method NumDeltas

diff.go:141–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139}
140
141func (diff *Diff) NumDeltas() (int, error) {
142 if diff.ptr == nil {
143 return -1, ErrInvalid
144 }
145 ret := int(C.git_diff_num_deltas(diff.ptr))
146 runtime.KeepAlive(diff)
147 return ret, nil
148}
149
150func (diff *Diff) Delta(index int) (DiffDelta, error) {
151 if diff.ptr == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected