MCPcopy Create free account
hub / github.com/go-git/go-git / IndexWriter

Method IndexWriter

storage/filesystem/dotgit/dotgit.go:185–187  ·  view source on GitHub ↗

IndexWriter returns a file pointer for write to the index file

()

Source from the content-addressed store, hash-verified

183
184// IndexWriter returns a file pointer for write to the index file
185func (d *DotGit) IndexWriter() (billy.File, error) {
186 return d.fs.Create(indexPath)
187}
188
189// Index returns a file pointer for read to the index file
190func (d *DotGit) Index() (billy.File, error) {

Callers 2

SetIndexMethod · 0.80

Calls 1

CreateMethod · 0.80

Tested by 1