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

Method ConfigWriter

storage/filesystem/dotgit/dotgit.go:175–177  ·  view source on GitHub ↗

ConfigWriter returns a file pointer for write to the config file

()

Source from the content-addressed store, hash-verified

173
174// ConfigWriter returns a file pointer for write to the config file
175func (d *DotGit) ConfigWriter() (billy.File, error) {
176 return d.fs.Create(configPath)
177}
178
179// Config returns a file pointer for read to the config file
180func (d *DotGit) Config() (billy.File, error) {

Callers 2

SetConfigMethod · 0.80

Calls 1

CreateMethod · 0.80

Tested by 1