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

Method HunkCount

blame.go:94–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93
94func (blame *Blame) HunkCount() int {
95 ret := int(C.git_blame_get_hunk_count(blame.ptr))
96 runtime.KeepAlive(blame)
97
98 return ret
99}
100
101func (blame *Blame) HunkByIndex(index int) (BlameHunk, error) {
102 ptr := C.git_blame_get_hunk_byindex(blame.ptr, C.uint32_t(index))

Callers 1

TestBlameFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestBlameFunction · 0.64