MCPcopy Index your code
hub / github.com/go-git/go-git / IndexWriter

Method IndexWriter

storage/filesystem/dotgit/dotgit.go:192–194  ·  view source on GitHub ↗

IndexWriter returns a file pointer for write to the index file

()

Source from the content-addressed store, hash-verified

190
191// IndexWriter returns a file pointer for write to the index file
192func (d *DotGit) IndexWriter() (billy.File, error) {
193 return d.fs.Create(indexPath)
194}
195
196// Index returns a file pointer for read to the index file
197func (d *DotGit) Index() (billy.File, error) {

Callers 2

SetIndexMethod · 0.80

Calls 1

CreateMethod · 0.45

Tested by 1