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

Method Path

index.go:151–155  ·  view source on GitHub ↗

Path returns the index' path on disk or an empty string if it exists only in memory.

()

Source from the content-addressed store, hash-verified

149// Path returns the index' path on disk or an empty string if it
150// exists only in memory.
151func (v *Index) Path() string {
152 ret := C.GoString(C.git_index_path(v.ptr))
153 runtime.KeepAlive(v)
154 return ret
155}
156
157// Clear clears the index object in memory; changes must be explicitly
158// written to disk for them to take effect persistently

Callers 9

TestRemotePushFunction · 0.45
cleanupTestRepoFunction · 0.45
pathInRepoFunction · 0.45
addAndGetTreeFunction · 0.45
TestIndexOpenFunction · 0.45
TestOdbBackendLooseFunction · 0.45
TestCloneFunction · 0.45
TestCloneWithCallbackFunction · 0.45

Calls

no outgoing calls

Tested by 9

TestRemotePushFunction · 0.36
cleanupTestRepoFunction · 0.36
pathInRepoFunction · 0.36
addAndGetTreeFunction · 0.36
TestIndexOpenFunction · 0.36
TestOdbBackendLooseFunction · 0.36
TestCloneFunction · 0.36
TestCloneWithCallbackFunction · 0.36