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

Function newIndexFromC

index.go:110–114  ·  view source on GitHub ↗
(ptr *C.git_index, repo *Repository)

Source from the content-addressed store, hash-verified

108}
109
110func newIndexFromC(ptr *C.git_index, repo *Repository) *Index {
111 idx := &Index{ptr: ptr, repo: repo}
112 runtime.SetFinalizer(idx, (*Index).Free)
113 return idx
114}
115
116// NewIndex allocates a new index. It won't be associated with any
117// file on the filesystem or repository

Callers 9

InmemoryIndexMethod · 0.85
RevertCommitMethod · 0.85
NewIndexFunction · 0.85
OpenIndexFunction · 0.85
IndexMethod · 0.85
ApplyToTreeMethod · 0.85
CherrypickCommitMethod · 0.85
MergeCommitsMethod · 0.85
MergeTreesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…